Maven Package Compilation Error

来源:互联网 发布:ubuntu接口配置ip地址 编辑:程序博客网 时间:2024/05/21 14:48
[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: 4.310s[INFO] Finished at: Tue Mar 05 14:32:23 IST 2013[INFO] Final Memory: 16M/218M[INFO] ------------------------------------------------------------------------[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project  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:

解决办法:

  1. Go to Window -> Preferences -> Java -> installed JREs
  2. Select the JDK you are using (C:\Program Files\Java\jdk1.6.xx)
0 0