1

我尝试从 cxf-dosgi-project 创建一个休息服务到我自己的 maven-project 中。我不了解https://github.com/apache/cxf-dosgi/tree/master/samples/rest上的 dosgi-rest-example 的复杂 maven-pom-结构,并且无法传输它。我尝试了许多不同的依赖项和捆绑选项。

我尝试了几个小时在我自己的 maven 项目中用我自己的 parent-pom “复制” https://github.com/apache/cxf-dosgi/tree/master/samples/rest的示例。总是试图从依赖项,捆绑包中复制所需的部分,......但是每次我得到一个编译的包时,我永远不会得到一个正在运行的 rsa 端点。

我尝试的最后一个测试是在https://www.file-upload.net/download-13781406/circlead-rest-test.zip.html

当我在 karaf的https://github.com/apache/cxf-dosgi/tree/master/samples/rest运行示例时,它就像魅力一样。所以我的技能是在 cxf-dosgi-rest-example 的基础上创建我自己的 karaf-rest-example。你有一个工作示例,或者你能向我解释如何使用这个示例作为新的休息服务的基础,如 karaf-bundle?

4

1 回答 1

1

几天后,SCR 提供了一个新的休息示例。这工作正常。见https://github.com/apache/karaf/tree/master/examples/karaf-rest-example/karaf-rest-example-scr

于 2019-11-22T20:13:55.970 回答