执行clean package时候报错项目正常运行
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ demo-test ---
[INFO] Deleting E:\EclipseMars\e3-manager\demo-test\target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ demo-test ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ demo-test ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to E:\EclipseMars\e3-manager\demo-test\target\classes
[INFO] -------------------------------------------------------------
[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] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.689 s
[INFO] Finished at: 2018-06-30T16:12:47+08:00
[INFO] Final Memory: 20M/112M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "pom.xml" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project demo-test: 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
百度上说的jre我都试过了,我用的是jdk而且是1.8.
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project demo-test: Compilation failure说找不到3.1
但是我配置这个jar包换个版本却还是报错找不到3.1这个版本。