Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maven 无法打包是什么鬼 #224

Open
lisserQAQ opened this issue Jul 26, 2024 · 3 comments
Open

maven 无法打包是什么鬼 #224

lisserQAQ opened this issue Jul 26, 2024 · 3 comments

Comments

@lisserQAQ
Copy link

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.畸形项目无法打包.

@libertasCat
Copy link

是这样的,逆天

@DreamerLWJ
Copy link

我使用的是 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>

然后重新构建就好了。

@String-hks
Copy link

怎么找到适配5.x版本rocketmq的dashboard版本啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants