我正在尝试在 FuseESB 中部署 Jersey servlet(基于 apache serviceMix),但出现以下错误:
Error executing command: Unable to resolve module com.temp.myappserver [248.4] because it is exposed to package 'javax.ws.rs' from org.apache.servicemix.specs.jsr311-api-1.1 [139.0] and com.sun.jersey.jersey-core [274.0] via two dependency chains.
Chain 1:
com.temp.myappserver [248.4]
import: (&(package=javax.ws.rs)(version>=1.1.0)(!(version>=2.0.0)))
|
export: package=javax.ws.rs
org.apache.servicemix.specs.jsr311-api-1.1 [139.0]
Chain 2:
com.temp.myappserver [248.4]
import: (package=com.sun.jersey.spi.container.servlet)
|
export: package=com.sun.jersey.spi.container.servlet; uses:=com.sun.jersey.server.impl.application
com.sun.jersey.jersey-servlet [267.0]
import: (package=com.sun.jersey.server.impl.application)
|
export: package=com.sun.jersey.server.impl.application; uses:=javax.ws.rs
com.sun.jersey.jersey-server [265.0]
import: (package=javax.ws.rs)
|
export: package=javax.ws.rs
com.sun.jersey.jersey-core [274.0]
我知道为什么我会收到这个错误 - 实际上 jersey-core jar 清单导出 javax.ws.rs 和 serviceMix 取决于它自己的实现。有没有办法解决它或者我需要将我的服务转换为 CXF?