我正在尝试从GitHub 存储库代码启动 Opendaylight Nemo ,经过很长时间解决依赖项版本和替换一些旧方法(现在已弃用或不支持)后,我设法构建了代码。但是,当我启动 Karaf 并尝试安装引导功能时,出现此错误
org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=18f63ee6-cf11-4378-a68f-e917667362bf; type=karaf.feature; version="[0,0.0.0]"; filter:="(&(osgi.identity=18f63ee6-cf11-4378-a68f-e917667362bf)(type=karaf.feature)(version>=0.0.0)(version<=0.0.0))"
[caused by: Unable to resolve 18f63ee6-cf11-4378-a68f-e917667362bf/0.0.0: missing requirement [18f63ee6-cf11-4378-a68f-e917667362bf/0.0.0] osgi.identity; osgi.identity=standard; type=karaf.feature; version="[4.3.2,4.3.2]"
[caused by: Unable to resolve standard/4.3.2: missing requirement [standard/4.3.2] osgi.identity; osgi.identity=pax-url-wrap; type=karaf.feature
[caused by: Unable to resolve pax-url-wrap/2.6.7: missing requirement [pax-url-wrap/2.6.7] osgi.identity; osgi.identity=org.ops4j.pax.url.wrap; type=osgi.bundle; version="[2.6.7,2.6.7]"; resolution:=mandatory
[caused by: Unable to resolve org.ops4j.pax.url.wrap/2.6.7: missing requirement [org.ops4j.pax.url.wrap/2.6.7] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.service.repository)(version>=1.1.0)(!(version>=1.2.0)))"
[caused by: Unable to resolve org.apache.karaf.features.core/4.3.2: missing requirement [org.apache.karaf.features.core/4.3.2] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.apache.felix.cm.json)(version>=1.0.0)(!(version>=2.0.0)))"]]]]]
[caused by: Unable to resolve 18f63ee6-cf11-4378-a68f-e917667362bf/0.0.0: missing requirement [18f63ee6-cf11-4378-a68f-e917667362bf/0.0.0]
[caused by: Unable to resolve standard/4.3.2: missing requirement [standard/4.3.2]
[caused by: Unable to resolve pax-url-wrap/2.6.7: missing requirement [pax-url-wrap/2.6.7]
[caused by: Unable to resolve org.ops4j.pax.url.wrap/2.6.7: missing requirement [org.ops4j.pax.url.wrap/2.6.7]
[caused by: Unable to resolve org.apache.karaf.features.core/4.3.2: missing requirement [org.apache.karaf.features.core/4.3.2] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.apache.felix.cm.json)(version>=1.0.0)
按照错误链,我认为错误是由于org.apache.felix.cm.json导致的,它是所有显示的错误中唯一缺少的包。我也尝试手动添加 jar 文件,但它不起作用;我该如何解决?