手记

eclipse maven打包 jre jdk 错误!

错误信息:

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project common-utils: 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.

解决方案:

添加 jdk 安装环境;

再次编译安装正常;



作者:cifer_pan
链接:https://www.jianshu.com/p/b0dea944810e


0人推荐
随时随地看视频
慕课网APP