org.osgi.framework.BundleException:不支持 'Bundle-ManifestVersion' 值:1

org.osgi.framework.BundleException: Unsupported 'Bundle-ManifestVersion' value: 1

我在 jboss fuse 的快速启动示例中使用 mvn clean install 构建 rest 项目,并使用 mvn fabric8:deploy 部署它但是当我将此配置文件分配给容器时,它有一个错误:我搜索了很多以找到解决方案,但我不知道哪个功能或工件有错误

Provision Exception:

    io.fabric8.common.util.MultiException: Error

      at io.fabric8.agent.download.impl.MavenDownloadManager$MavenDownloader.(MavenDownloadManager.java:93)

      at io.fabric8.agent.download.impl.MavenDownloadManager.createDownloader(MavenDownloadManager.java:71)

      at io.fabric8.agent.service.Agent.loadResources(Agent.java:626)

      at io.fabric8.agent.service.Agent.provision(Agent.java:212)

      at io.fabric8.agent.service.Agent.provision(Agent.java:199)

      at io.fabric8.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:753)

      at io.fabric8.agent.DeploymentAgent.run(DeploymentAgent.java:303)

      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

      at java.util.concurrent.FutureTask.run(FutureTask.java:266)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

      at java.lang.Thread.run(Thread.java:748)

    org.osgi.framework.BundleException: Unsupported 'Bundle-ManifestVersion' value: 1

      at io.fabric8.agent.resolver.ResourceBuilder.build(ResourceBuilder.java:72)

      at io.fabric8.agent.resolver.ResourceBuilder.build(ResourceBuilder.java:65)

      at io.fabric8.agent.service.Agent.downloaded(Agent.java:633)

      at io.fabric8.agent.download.impl.MavenDownloadManager$MavenDownloader.operationComplete(MavenDownloadManager.java:143)

      at io.fabric8.agent.download.impl.MavenDownloadManager$MavenDownloader.operationComplete(MavenDownloadManager.java:137)

      at io.fabric8.agent.download.impl.DefaultFuture.notifyListener(DefaultFuture.java:343)

      at io.fabric8.agent.download.impl.DefaultFuture.notifyListeners(DefaultFuture.java:328)

      at io.fabric8.agent.download.impl.DefaultFuture.setValue(DefaultFuture.java:254)

      at io.fabric8.agent.download.impl.AbstractDownloadTask.setFile(AbstractDownloadTask.java:53)

      at io.fabric8.agent.download.impl.AbstractRetryableDownloadTask.run(AbstractRetryableDownloadTask.java:41)

      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

      at java.util.concurrent.FutureTask.run(FutureTask.java:266)

      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access1(ScheduledThreadPoolExecutor.java:180)

      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)

      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

      at java.lang.Thread.run(Thread.java:748)

解决这个问题,在fuse终端写这个命令: 配置文件显示 配置文件名称

结果显示: 代理属性: 可选。mvn:com.fasterxml.jackson.module/jackson-module-jsonSchema/2.4.3 = mvn:com.fasterxml.jackson.module/jackson-module-jsonSchema/2.4.3 lastRefresh.quickstarts-cxf-rest = 1564925509134 optional.fab:mvn:com.wordnik/swagger-jaxrs_2.10/1.3.12 = 很棒:mvn:com.wordnik/swagger-jaxrs_2.10/1.3.12

在 fuse V6.3 fab 中不再工作,您应该打包: 所以在保险丝控制台中,打开配置文件的代理属性并使optional.fab评论

问题会解决