这是我做/想做的事情:
出现此错误。如何创建具有所有依赖项的kar文件?是否有其他更简单的方法来部署kar文件,而无需进入karaf控制台。
2017-10-05 22:22:30,350 |调试| pool-54-thread-7 | AetherBasedResolver | 4 - org.ops4j.pax.url.mvn - 2.5.2 | 已解决(org.apache.felix:org.apache.felix.scr.compat:jar:1.0.4)as /Volumes/data/apps/TOS_ESB-20170623_1246-V6.4.1/Runtime_ESBSE/container/system/org/apache/felix/org.apache.felix.scr.compat/1.0.4/org.apache.felix.scr.compat -1.0.4.jar 2017-10-05 22:22:30,350 |调试| pool-54-thread-7 | AetherBasedResolver | 4 - org.ops4j.pax.url.mvn - 2.5.2 | 已解决(org.apache.felix:org.apache.felix.scr.compat:jar:1.0.4)as /Volumes/data/apps/TOS_ESB-20170623_1246-V6.4.1/Runtime_ESBSE/container/system/org/apache/felix/org.apache.felix.scr.compat/1.0.4/org.apache.felix.scr.compat -1.0.4.jar 2017-10-05 22:22:31,838 |警告| container / deploy | KarServiceImpl
| 99 - org.apache.karaf.kar.core - 4.1.1 | 无法安装Kar feature camel-example-sql-blueprint / 2.20.0.SNAPSHOT org.osgi.service.resolver.ResolutionException:无法解析root : 缺少要求[root] osgi.identity ; osgi.identity =骆驼示例-SQL蓝图;键入= karaf.feature; 版本= “[2.20.0.SNAPSHOT,2.20.0.SNAPSHOT]”; 滤波器:= “(及(osgi.identity =骆驼示例-SQL蓝图)(类型= karaf.feature)(版本&GT = 2.20.0.SNAPSHOT)(版本&LT = 2.20.0.SNAPSHOT))” [由:无法解决 camel-example-sql-blueprint / 2.20.0.SNAPSHOT:缺少要求 [camel-example-sql-blueprint / 2.20.0.SNAPSHOT] osgi.identity; osgi.identity = slf4j.api;键入= osgi.bundle;版本= “[1.7.22,1.7.22]”; resolution:= mandatory [由:无法解析slf4j.api / 1.7.22: 缺少要求[slf4j.api / 1.7.22] osgi.wiring.package; 滤波器:= “(及(osgi.wiring.package = org.slf4j.impl)(版本> = 1.6.0))”]] 在 org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42) 〜[?:?] at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:389) 〜[?:?] at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:375) 〜[?:?] at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:347) 〜[?:?] at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:218) 〜[?:?] at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:285) 〜[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1170) 〜[?:?] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda $ doProvisionInThread $ 0(FeaturesServiceImpl.java:1069) 〜[?:?]在java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] 在 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?] 在 java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:624) [:?]