# # #被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