0

How to make mvn test goal fail if ANY warning is detected?

I have tried without success:

<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>
y.luis.rojo
  • 1,794
  • 4
  • 22
  • 41

0 Answers0