Found an error while encountering maven install
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (Default-compile) on project Autotest_fchtgl:compilation failure
[ERROR] No compiler is provided in this environment. Perhaps are running ona JRE rather than a JDK?
[ERROR], [Help 1]
[ERROR]
[ERROR] The full stack trace of the errors, re-run Maven with The-eswitch.
[ERROR] Re-run Maven using The-x switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, pleaseread the following articles:
[ERROR] [Help 1]http://cwiki.apache.org/confluence/display/maven/mojofailureexception
Analysis:
In fact, the error has been stated very clearly, see the first last perhaps you is running on a JRE rather than a JDK?
This means that you may be compiling on a JRE instead of a JDK, and maven compiling is for JDK, perhaps your compiler has configured a JRE path.
Solve:
In Eclipse, choose window→preference→java→installed jres Add your JDK path, select the JDK instead of the JRE, and the reason for the error is here.
Then right-click on your MAVEN project, tap Update Project in Maven, and then maven Clean,install a bit.
Resolve failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (Default-compile) on project Autotest_fchtgl:compilation method of Failure