我有一个java项目,并且我对这个项目有以下设置。
IDE: Intellij旗舰版2020.03 JDK: Oracle 11.0.1 Maven: 3.6.3
然后,在Compiler per- -> Java Compiler -> Override编译器参数per-module下:编译optinos下,我有
-parameters -XDcompilePolicy=byfile "-Xplugin:ErrorProne -Xep:ParameterName:OFF -Xep:FallThrough:OFF"但是当我点击build时,我总是得到这个错误-
java:找不到插件: ErrorProne
我应该为这个项目配置什么?
发布于 2021-03-11 08:49:11
我在使用路径中设置的JDK 11和14 Idea的项目配置时也遇到了同样的问题。我刚把项目的二手版本改成了11 (或者应该把它设置成能找到的Idea )。
我的配置是非常默认的。
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
<compilerArgs>
<arg>-XDcompilePolicy=simple</arg>
<arg>-Xplugin:ErrorProne
-XepDisableWarningsInGeneratedCode
</arg>
</compilerArgs>
<annotationProcessorPaths>
<path>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
<version>2.4.0</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>https://stackoverflow.com/questions/66449565
复制相似问题