場景:Maven Install報錯:Perhaps you are running on a JRE rather than a JDK?
英文描述:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project busiservice: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
中文描述:此環境中未提供編譯器,你可能使用jre運行而不是jdk。
引發原因:Eclipse默認在jre上運行,maven install 編譯需要jdk中的編譯器,而jre中並沒有
問題解決:
再次執行maven install 打包
成功!