无法执行目标org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile

时间:2018-06-22 17:56:05

标签: spring spring-boot plugins maven-2

我从spring initializr创建了一个springboot项目,然后创建了一个同名的Maven项目,并将该项目导入eclipse。

JDK版本为1.8,目标运行时间为Apache tomcat 8.0。

但是当我尝试进行运行maven安装时,通过显示此错误并不能通过构建

[INFO] Compiling 1 source file to 
C:\Users\scharafi\workspace\ServeursGestionStock\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: 8.009 s
[INFO] Finished at: 2018-06-22T18:48:38+01:00
[INFO] Final Memory: 20M/159M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project ServeursGestionStock: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

0 个答案:

没有答案