現(xiàn)在開始學(xué)習(xí)maven,我是在極客學(xué)院看的視頻學(xué)習(xí)的,學(xué)習(xí)當(dāng)然會(huì)遇到異常,下面是我遇到的第一個(gè)異常
[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
其實(shí)很好解決,
先把jre目錄改成jdk目錄

然后直接在項(xiàng)目上右鍵

然后 編譯就能成功了!!!
極客學(xué)院的課程還不錯(cuò),雖然有點(diǎn)亂,但課程排序下就好了,用下面的注冊(cè),你和我都能獲得一個(gè)月的vip,還不錯(cuò),就是要手機(jī)號(hào)
點(diǎn)擊注冊(cè)
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注