环境
- servicemix :6.1.0
- jdk:jdk1.8.0_191
- 项目中使用的camel版本:2.23.1
- servicemix中安装的camel版本:2.16.1
起初小编在开发的时候就直接在maven仓库上搜索了一个目前使用次数最多的版本2.23.1加到了项目依赖中,在部署的时候出现了以下的错误Unable to resolve 262.0: missing requirement [262.0] osgi.wiring.package; (&(osgi.wiring.package=org.apache.camel)(version>=2.22.0)(!(version>=3.0.0)))
异常日志如下:
2019-06-28 18:22:07,243 | WARN | mix-6.1.0/deploy | fileinstall | 7 - org.apache.felix.fileinstall - 3.5.0 | Error while starting bundle: file:/D:/develop/apache-servicemix-6.1.0/deploy/web-service.jar
org.osgi.framework.BundleException: Unresolved constraint in bundle com.monk.demo.web-service [262]: Unable to resolve 262.0: missing requirement [262.0] osgi.wiring.package; (&(osgi.wiring.package=org.apache.camel)(version>=2.22.0)(!(version>=3.0.0)))
at org.apache.felix.framework.Felix.resolveBundleRevi