我尝试从cxf-dosgi-project创建一个rest-service到我自己的maven-project中。我不理解https://github.com/apache/cxf-dosgi/tree/master/samples/rest的dosgi-rest-example的复杂的maven-pom结构,也不能移植它。我尝试了许多不同的依赖项和捆绑选项。
我花了几个小时在我自己的maven项目中用我自己的父母--pom“复制”了https://github.com/apache/cxf-dosgi/tree/master/samples/rest的例子。总是试图从依赖中复制所需的部分,捆绑操作,...但是每次我得到一个编译的包,我从来没有得到一个运行的rsa端点。
我试过的最后一次测试是在https://www.file-upload.net/download-13781406/circlead-rest-test.zip.html
当我在卡拉夫的https://github.com/apache/cxf-dosgi/tree/master/samples/rest上运行这个例子时,它的效果很不错。所以我的技能就是在cxf-dosgi-rest-example的基础上创建我自己的karaf-rest-example的问题。你有没有一个可用的例子,或者你能向我解释一下如何使用这个例子作为一个新的rest-service的基础,作为karaf-bundle吗?
发布于 2019-11-23 04:13:56
几天后,SCR提供了一个新的rest-example。这可以很好地工作。请参阅https://github.com/apache/karaf/tree/master/examples/karaf-rest-example/karaf-rest-example-scr
https://stackoverflow.com/questions/58807403
复制相似问题