如果检测到任何警告,如何使mvn test
目标失败?
我尝试没有成功:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<failOnWarning>true</failOnWarning>
</configuration>
</plugin>