myeclipse maven編譯出錯

  從.net 到java  快一年了.這一年學了不少東西.從開發角度來講倆個語言查不到.部署上差別較大.不過java處理問題上確實不太統一.好多問題在網上沒有正確的回答.剛換臺式機發現 mvn install 的時候總是抱錯java

    

[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project coupon-erp-service-client: 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 :coupon-erp-service-client

   就在網上搜了下結果.發現沒有明確答案.apache

    

    

 

       No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?    實際上是jre的配置有問題修改後就沒有問題.
相關文章
相關標籤/搜索