Maven學習遇到的第一個錯誤

   如今開始學習maven,我是在極客學院看的視頻學習的,學習固然會遇到異常,下面是我遇到的第一個異常html

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project springside-core: 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

  其實很好解決,java

先把jre目錄改爲jdk目錄spring

 

而後直接在項目上右鍵apache

 

而後 編譯就能成功了!!!maven

 

極客學院的課程還不錯,雖然有點亂,但課程排序下就行了,用下面的註冊,你和我都能得到一個月的vip,還不錯,就是要手機號ide

點擊註冊學習

相關文章
相關標籤/搜索