maven工程 ....-pojo .................................... FAILURE [ 0.736 s]

一下是出错信息

[ERROR] COMPILATION ERROR : 

[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] e3-manager 0.0.1-SNAPSHOT .......................... SUCCESS [  0.295 s]
[INFO] e3-manager-pojo .................................... FAILURE [  0.736 s]
[INFO] e3-manager-dao ..................................... SKIPPED
[INFO] e3-manager-interface ............................... SKIPPED
[INFO] e3-manager-service ................................. SKIPPED
[INFO] e3-manager-web 0.0.1-SNAPSHOT ...................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.253 s
[INFO] Finished at: 2018-03-31T14:19:26+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project e3-manager-pojo: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :e3-manager-pojo

解决办法,将jre的路径改为你添加到环境变量的jre路劲

maven工程 ....-pojo .................................... FAILURE [ 0.736 s]