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 安装环境;

《eclipse maven打包 jre jdk 错误!》

再次编译安装正常;

    原文作者:cifer_pan
    原文地址: https://www.jianshu.com/p/b0dea944810e
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞