Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1
-
None
Description
If I write a pom file like the following:
... <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.1</version> <configuration> <compilerId>javac</compilerId> <source>1.6</source> <target>1.6</target> <compilerArguments> <Werror /> <Xlint:all /> </compilerArguments> <showDeprecation>true</showDeprecation> </configuration> </plugin>
and if there are only warnings, then the build will not fail as intended by the compiler Argument. The reason is that in compileInProcess the exit code from javac is only considered if there are no messages. In the case of treating warnings as errors, there will be messages but no errors so the intention of the build failure is lost.
Attachments
Attachments
Issue Links
- relates to
-
MCOMPILER-179 Warnings
- Closed