- 执行了
~/apache-maven-3.6.3/bin/mvn clean source:jar install -Dmaven.test.skip=true
命令之后,控制台报错,报错信息如下。
报错具体信息
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ slb-auth-service ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 28 source files to /Users/houfei/workspace/slb-auth-client/slb-auth-service/target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.290 s
[INFO] Finished at: 2023-02-06T10:58:07+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project slb-auth-service: Fatal error compiling: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x3855b27e) 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 @0x3855b27e -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
houfei@houfeideMacBook-Pro slb-auth-service %
...大约 1 分钟