maven 打包报错 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1...

maven打包,报以下错误

​
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-
plugin:3.10.1:compile (default-compile) on project hengyu-electrical-backend:
 Resolution of annotationProcessorPath dependencies failed: For artifact {org.projectlombok:lombok:null:jar}: The version cannot be empty. -> [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]
 MojoExecutionException - Apache Maven - Apache Software Foundation 
Process finished with exit code 1

​

         上面问题出在 Maven 构建过程中,具体是 maven-compiler-plugin 插件在处理 annotationProcessorPath 时失败了。错误的核心是 Lombok 的版本号为空,导致无法正确解析依赖。

问题分析

  1. Lombok

你可能感兴趣的:(技术避坑指南,maven,apache,java,spring,boot,后端)