Fail on warning

FailOnWarning allow to stop the build process if some warning are raise.

To Compress every js and css files and fail if warning (on jslint and/or compress):

<project>
...
  <build>
    <plugins>
...
      <plugin>
        <groupId>net.sf.alchim</groupId>
        <artifactId>yuicompressor-maven-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>jslint</goal>
              <goal>compress</goal>
            </goals>
          </execution>
        </executions>        
        <configuration>
          <failOnWarning>true</failOnWarning>
        </configuration>
      </plugin>
...
    </plugins>
  </build>
...
</project>