Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:x.x.x:compile排查

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:x.x.x:compile (default-compile) on project xinghe-interaction: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 

Whether Eclipse or IDEA, whether it is Windows or Mac

The default can encounter this error Readers familiar with the system, Eclipse, IDEA, JDK project configuration, so it will not also the venue Baidu:

Mac system and IDEA Reference: https://blog.csdn.net/u012382791/article/details/97886150

1. investigation project pom file JDK version consistency

2. The investigation "Project" Configuring the development environment JDK version consistency (if it is packaged in the Development Tools)

3. investigation "development tools" Configuring JDK version consistency (if it is packaged in the Development Tools)

4. troubleshoot system JDK version consistency

5. Configure the plurality JDK version checking the current version of the application

6. own installed JDK, development tools also installed "JRE", check the current application configuration JAVA_HOME

Resetting the development tools (if packaged in development tools) to modify the system 7.

Published 65 original articles · won praise 8 · views 160 000 +

Guess you like

Origin blog.csdn.net/u012382791/article/details/97884791