Error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1 solution for maven Install

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.