maven 无法打包是什么鬼
lisserQAQ opened this issue · comments
lisserQAQ commented
It is highly recommended to fix these problems because they threaten the stability of your build.
For this reason, future Maven versions might no longer support building such malformed projects.畸形项目无法打包.
CalmDown commented
是这样的,逆天
Dreamer commented
我使用的是 JDK 版本如下,
java 17.0.5 2022-10-18 LTS
Java(TM) SE Runtime Environment (build 17.0.5+9-LTS-191)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.5+9-LTS-191, mixed mode, sharing)
我所遇到的是 lombok 的兼容性问题,在 master 和 release 分别报错如下,
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project rocketmq-dashboard: Fatal error compiling: java.lang.NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member field 'com.sun.tools.javac.tree.JCTree qualid' -> [Help 1]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project rocketmq-dashboard: Fatal error compiling: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x28b7afdb) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @0x28b7afdb -> [Help 1]
我的解决方案就是提升一下 lombok 的版本,
<lombok.version>1.18.30</lombok.version>
然后重新构建就好了。
Super-Hks commented
怎么找到适配5.x版本rocketmq的dashboard版本啊