我的团队最近决定使用javac-with-errorprone
Eclipse,但 Eclipse 抱怨无法将其映射到生命周期。如何在不告诉 Eclipse 忽略它的情况下解决这个问题,因为这是处理丢失 m2e 连接器的“正常”方式?
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerId>javac-with-errorprone</compilerId>
<forceJavacCompilerUse>true</forceJavacCompilerUse>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-compiler-javac-errorprone</artifactId>
<version>2.5</version>
</dependency>
<dependency>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
<version>2.0.8</version>
</dependency>
</dependencies>
</plugin>