执行mvn clean install报错:编译失败,求解决方案
执行
mvn clean install时遇到编译失败错误 首次执行mvn clean install命令时出现以下错误:
[INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 41.009 s [INFO] Finished at: 2022-09-24T11:12:43-03:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project accounts: Compilation failure -> [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/MojoFailureException
错误截图:
环境版本信息
Maven版本
$ mvn -version Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63) Maven home: C:\apache-maven\apache-maven-3.8.6 Java version: 17.0.4.1, vendor: Azul Systems, Inc., runtime: C:\Java\zulu17.36.17-ca-jdk17.0.4.1-win_x64\zulu17.36.17-ca-jdk17.0.4.1-win_x64 Default locale: pt_BR, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Java版本
$ java --version openjdk 17.0.4.1 2022-08-12 LTS OpenJDK Runtime Environment Zulu17.36+17-CA (build 17.0.4.1+1-LTS) OpenJDK 64-Bit Server VM Zulu17.36+17-CA (build 17.0.4.1+1-LTS, mixed mode, sharing)
相关文件及排查记录
- 完整POM文件内容已整理在仓库中
- 仓库内包含我尝试过的多种解决操作、更多错误截图及代码细节
内容的提问来源于stack exchange,提问作者vitoriac
相关产品推荐
相关产品推荐

