若依框架后端打包报错
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project paper-manage-quartz: Compilation failure[ERROR] No compiler is provided in this e
·
问题描述:若依框架打包时报错
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project paper-manage-quartz: 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] 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
原因分析:
错误提示:此环境中没有提供编译器。 也许您运行的是JRE而不是JDK?
在项目运行时,运行的时JRE,根本没有运行JDK。导致打包失败。
解决方案:
提示:更换Eclipse运行环境,将JRE环境变更为JDK环境。如下图设置。
再次打包,成功被运行。
更多推荐
已为社区贡献4条内容
所有评论(0)