Spring boot OSGi Karaf Spring Boot 2.1.4版本错误

Spring boot OSGi Karaf Spring Boot 2.1.4版本错误,spring-boot,osgi,apache-karaf,osgi-bundle,maven-bundle-plugin,Spring Boot,Osgi,Apache Karaf,Osgi Bundle,Maven Bundle Plugin,我正在尝试使用SpringBoot2.1.4和Java8、OSGiVersion5.0.0和ApacheKaraf4.1.3构建一个OSGiKaraf应用程序 当我使用SpringBoot1.5.9时,我已经创建了以下构建和运行良好的工具 但是,当我将Spring引导版本从1.5.9-RELEASE更改为2.1.4-RELEASE,并尝试执行mvn clean install时,maven bundle插件会出现以下错误 [WARNING] Bundle com.nemesis:osgi-spr

我正在尝试使用SpringBoot2.1.4和Java8、OSGiVersion5.0.0和ApacheKaraf4.1.3构建一个OSGiKaraf应用程序

当我使用SpringBoot1.5.9时,我已经创建了以下构建和运行良好的工具

但是,当我将Spring引导版本从1.5.9-RELEASE更改为2.1.4-RELEASE,并尝试执行
mvn clean install
时,maven bundle插件会出现以下错误

[WARNING] Bundle com.nemesis:osgi-spring-boot-demo-bundle:bundle:0.0.1-SNAPSHOT : Export com.nemesis.osgi.springboot,  has 4,  private references [com.nemesis.osgi.springboot.controller, org.springframework.context.annotation, org.springframework.boot, org.springframework.boot.autoconfigure], 
[ERROR] Bundle com.nemesis:osgi-spring-boot-demo-bundle:bundle:0.0.1-SNAPSHOT : Exception: java.lang.ArrayIndexOutOfBoundsException: 19
[ERROR] Bundle com.nemesis:osgi-spring-boot-demo-bundle:bundle:0.0.1-SNAPSHOT : Invalid class file META-INF/versions/9/module-info.class (java.lang.ArrayIndexOutOfBoundsException: 19)
[ERROR] Bundle com.nemesis:osgi-spring-boot-demo-bundle:bundle:0.0.1-SNAPSHOT : Classes found in the wrong directory: {META-INF/versions/9/org/apache/logging/log4j/util/StackLocator.class=org.apache.logging.log4j.util.StackLocator, META-INF/versions/9/org/apache/logging/log4j/util/internal/DefaultObjectInputFilter.class=org.apache.logging.log4j.util.internal.DefaultObjectInputFilter, META-INF/versions/9/org/apache/logging/log4j/util/ProcessIdUtil.class=org.apache.logging.log4j.util.ProcessIdUtil}
[ERROR] Bundle com.nemesis:osgi-spring-boot-demo-bundle:bundle:0.0.1-SNAPSHOT : Exception: java.lang.ArrayIndexOutOfBoundsException: 19
[ERROR] Bundle com.nemesis:osgi-spring-boot-demo-bundle:bundle:0.0.1-SNAPSHOT : Invalid class file module-info.class (java.lang.ArrayIndexOutOfBoundsException: 19)
[ERROR] Bundle com.nemesis:osgi-spring-boot-demo-bundle:bundle:0.0.1-SNAPSHOT : Exception: java.lang.ArrayIndexOutOfBoundsException: 19
[ERROR] Bundle com.nemesis:osgi-spring-boot-demo-bundle:bundle:0.0.1-SNAPSHOT : Exception: java.lang.ArrayIndexOutOfBoundsException: 19
[ERROR] Bundle com.nemesis:osgi-spring-boot-demo-bundle:bundle:0.0.1-SNAPSHOT : Exception: java.lang.ArrayIndexOutOfBoundsException: 19

非常感谢任何帮助。

我认为错误是因为新的spring引导捆绑包或依赖项是maven捆绑包插件3.3.0版还无法处理的多版本JAR。 将maven bundle插件版本更新到4.1.0为我解决了这个问题