git下来的代码在maven install 报错

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project plugin-function: Compilation failure

[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

[ERROR]

[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

[ERROR]

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :plugin-function


rabbitliu 发布于 2019-7-5 15:06
1min目标场景问卷 立即参与
回答问题
悬赏:0 F币 + 添加悬赏
提示:增加悬赏、完善问题、追问等操作,可使您的问题被置顶,并向所有关注者发送通知
共2回答
最佳回答
0
rabbitliuLv7初级互助
发布于2019-7-5 17:59

选择项目 按 Alt+Ctrl+S

蓝框处改成jdk的版本。

image.png

最佳回答
0
PoseidonLv5高级互助
发布于2019-7-5 16:13

你本地JDK的问题

  • 1关注人数
  • 650浏览人数
  • 最后回答于:2019-7-5 17:59
    请选择关闭问题的原因
    确定 取消
    返回顶部