0
点赞
收藏
分享

微信扫一扫

You are running Spotless on JRE 8, which limits you to google-java-format 1.7

mjjackey 2022-04-29 阅读 96

现象

执行以下命令

mvn spotless:apply

出现以下报错信息:

 Execution default-cli of goal com.diffplug.spotless:spotless-maven-plugin:2.4.2:apply failed: java.lang.Exception: You are running Spotless on JRE 8, which limits you to google-java-format 1.7
[ERROR] If you upgrade your build JVM to 11+, then you can use google-java-format 1.9, which may have fixed this problem.

在这里插入图片描述

原因

有一些类编译出错,大概率是合并分之后,有冲突没有解完,再往上会找到这个类。
在这里插入图片描述

解决

解决冲突,重新 mvn spotless:apply

举报

相关推荐

0 条评论