MAVEN Environment Setup Issues summary

Source: Internet
Author: User

# # #被maven折腾了1周, encountered a lot of problems, the next summary, stay for later to view, convenient for everyone to communicate:

1. Because of the compatibility issues with Maven and Eclipse, the building was a long struggle, and finally found using Eclipse IDE for Java developers (version=4.2.0) and M aven3.0.5, and then add the 4th map address, the duly completed, 2 minutes to fix

2. When you execute test with Eclipse, Eclipse always reports the following error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project clothing: Compilation failure[ERROR] Unable to locate the Javac Compiler in:

This problem is caused by a directory error in the JRE, which changes the system's JDK instead of the JRE.

    

Note: EClipse automatically detects the JDK of the system configuration and then points the JRE itself to use to the JRE in the installation directory (note that it is a separate JRE, which is the last step of installing the JDK that prompts you to install, we will typically install it in the same directory as the JDK, Sibling to the JDK directory). As a development habit for most programmers, the eclipse's JRE is typically reset to the JDK's installation directory, and Eclipse automatically detects the JRE under the JDK.



From for notes (Wiz)

MAVEN Environment Setup Issues summary

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.