maven Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile

在执行run as ->maven install 操作的时候报错:maven  Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile。

解决方案:

window -> performance ->java->installed JREs ->Execution Environment:

然后选择相应的jre环境:如:JavaSe 1.7,然后选择右边相应的jdk就好。

你可能感兴趣的:(其他笔记)