Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)(
Posted 听歌敲代码
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)(相关的知识,希望对你有一定的参考价值。
使用maven打包的时候出现如下错误:
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)
解决办法:
1.查看window--Preferences--Installed JREs 中是否引用的是本地的jdk,不是就改为本地jdk
2.若问题依旧存在,则还需要 查看window--Preferences--Installed JREs -- Execution Environments,点击左侧的jre版本,当选中的jre版本在右侧出现,则点击ok
3.若问题依旧存在,则还需要 选中项目,Alt + Enter,java Compiler,选中jdk版本。
问题解决!
以上是关于Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)(的主要内容,如果未能解决你的问题,请参考以下文章
运行maven项目时出现一下问题:“ Failed to execute goal org.apache.maven.plugins“
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
maven报错---Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:create (default-c
Maven多模块项目单独编译子模块项目时报错:Failed to execute goal on project
Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.1.0