使用idea osgi编译时报如下错误
Error:osgi: [osgi-spring-boot-demo] 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/module-info.class=module-info, 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/Base64Util.class=org.apache.logging.log4j.util.Base64Util, META-INF/versions/9/org/apache/logging/log4j/util/ProcessIdUtil.class=org.apache.logging.log4j.util.ProcessIdUtil, META-INF/versions/9/org/apache/logging/log4j/util/StackLocator$FqcnCallerLocator.class=org.apache.logging.log4j.util.StackLocator$FqcnCallerLocator}

springboot 2.3.12版本搭建osgi环境编译的时候报错
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- 小P聊技术 2022-03-08 11:15关注
排查下是不是jar包冲突,打包的时候指定下maven的版本,试下看看
<maven-bundle-plugin.version>3.5.0</maven-bundle-plugin.version>解决 无用评论 打赏 举报