Project Operating Environment: JDK1.8+TOMCAT8
Maven install times wrong: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1
The cause of this error is also more, the following 2 kinds of situations:
Scenario 1 (Common): You may compile on a JRE instead of a JDK, and Maven compiles the JDK, i.e. your compiler configures a JRE path that needs to be replaced by a JDK.
Action: window→preference→java→installed jres Add your JDK path, such as: (Here I show the Java folder, is actually the JDK, but the name changed)
Case 2 (uncommon): This is a small mistake I made, that is Maven-compiler-plugin version number forgot to write, also can cause this error, such as:
After you make up.
Finally, right-click your MAVEN project, tap Update Project in Maven, and then maven install will succeed!
Error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1 solution for maven Install