I would like to use the -Werror hidden feature of javac to fail the
build if warnings occur. I have a maven 2.2.1 pom which contains the
following:
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<compilerArguments>
<Werror />
<Xlint:all />
</compilerArguments>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
...
I have observed the following:
* I do see the Xlint warnings, but they don't result in a build failure.
* If I remove the showDeprecation statement I don't see any warnings.
* Using fork doesn't help
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]