kettle项目中使用到了这个karaf框架
嵌入到java项目中,启动时会报错
信息: Lock acquired. Setting startlevel to 100 九月 28, 2021 1:01:38 下午 org.apache.karaf.main.Main$1 log 严重: Bundle org.ops4j.pax.url.mvn [4] Error starting mvn:org.ops4j.pax.url/pax-url-aether/2.6.1 (org.osgi.framework.BundleException: Unable to resolve org.ops4j.pax.url.mvn [4](R 4.0): missing requirement [org.ops4j.pax.url.mvn [4](R 4.0)] osgi.wiring.package; (&(osgi.wiring.package=org.slf4j.spi)(version>=1.6.0)(!(version>=2.0.0))) Unresolved requirements: [[org.ops4j.pax.url.mvn [4](R 4.0)] osgi.wiring.package; (&(osgi.wiring.package=org.slf4j.spi)(version>=1.6.0)(!(version>=2.0.0)))]) org.osgi.framework.BundleException: Unable to resolve org.ops4j.pax.url.mvn [4](R 4.0): missing requirement [org.ops4j.pax.url.mvn [4](R 4.0)] osgi.wiring.package; (&(osgi.wiring.package=org.slf4j.spi)(version>=1.6.0)(!(version>=2.0.0))) Unresolved requirements: [[org.ops4j.pax.url.mvn [4](R 4.0)] osgi.wiring.package; (&(osgi.wiring.package=org.slf4j.spi)(version>=1.6.0)(!(version>=2.0.0)))] at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4149) at org.apache.felix.framework.Felix.startBundle(Felix.java:2119) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373) at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) at java.lang.Thread.run(Thread.java:748) 九月 28, 2021 1:01:39 下午 org.apache.karaf.main.Main$1 log 严重: Bundle org.apache.karaf.features.core [11] Error starting mvn: org.apache.karaf.features/org.apache.karaf.features.core/4.2.6 (org.osgi.framework.BundleException: Unable to resolve org.apache.karaf.features.core [11](R 11.0): missing requirement [org.apache.karaf.features.core [11](R 11.0)] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.pax.url.mvn)(version>=2.6.0)(!(version>=3.0.0))) [caused by: Unable to resolve org.ops4j.pax.url.mvn [4](R 4.0): missing requirement [org.ops4j.pax.url.mvn [4](R 4.0)] osgi.wiring.package; (&(osgi.wiring.package=org.slf4j.spi)(version>=1.6.0)(!(version>=2.0.0)))] Unresolved requirements: [[org.apache.karaf.features.core [11](R 11.0)] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.pax.url.mvn)(version>=2.6.0)(!(version>=3.0.0)))]) org.osgi.framework.BundleException: Unable to resolve org.apache.karaf.features.core [11](R 11.0): missing requirement [org.apache.karaf.features.core [11](R 11.0)] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.pax.url.mvn)(version>=2.6.0)(!(version>=3.0.0))) [caused by: Unable to resolve org.ops4j.pax.url.mvn [4](R 4.0): missing requirement [org.ops4j.pax.url.mvn [4](R 4.0)] osgi.wiring.package; (&(osgi.wiring.package=org.slf4j.spi)(version>=1.6.0)(!(version>=2.0.0)))] Unresolved requirements: [[org.apache.karaf.features.core [11](R 11.0)] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.pax.url.mvn)(version>=2.6.0)(!(version>=3.0.0)))] at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4149) at org.apache.felix.framework.Felix.startBundle(Felix.java:2119) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373) at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308) at java.lang.Thread.run(Thread.java:748) 09-28 13:03:21.498 logback [KarafLifecycleListener Timeout Thread] ERROR o.p.di.osgi.KarafLifecycleListener - The Kettle Karaf Lifecycle Listener failed to execute properly after waiting for 100 seconds. Releasing lifecycle hold, but some services may be unavailable.
osgi.wiring.package=org.slf4j.spi)(version>=1.6.0)(!(version>=2.0.0)))] Unresolved requirements: [[org.apache.karaf.features.core [11](R 11.0)] osgi.wiring.package; (&(osgi.wiring.package=org.ops4j.pax.url.mvn)(version>=2.6.0)(!(version>=3.0.0)))])
项目中缺少两个依赖,添加org.slf4j 和 org.ops4j.pax.url.mvn
不知道怎么解决,把下面两个插件注释掉不会出现这个报错