You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2016/10/09 13:38:06 UTC
svn commit: r1763979 -
/maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
Author: rfscholte
Date: Sun Oct 9 13:38:06 2016
New Revision: 1763979
URL: http://svn.apache.org/viewvc?rev=1763979&view=rev
Log:
[MCOMPILER-267] Compiler plugin could have failOnWarning option
Modified:
maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
Modified: maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java?rev=1763979&r1=1763978&r2=1763979&view=diff
==============================================================================
--- maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java (original)
+++ maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java Sun Oct 9 13:38:06 2016
@@ -102,6 +102,14 @@ public abstract class AbstractCompilerMo
*/
@Parameter( property = "maven.compiler.failOnError", defaultValue = "true" )
private boolean failOnError = true;
+
+ /**
+ * Indicates whether the build will continue even if there are compilation warnings.
+ *
+ * @since 3.6
+ */
+ @Parameter( property = "maven.compiler.failOnWarning", defaultValue = "false" )
+ private boolean failOnWarning;
/**
* Set to <code>true</code> to include debugging information in the compiled class files.
@@ -584,6 +592,8 @@ public abstract class AbstractCompilerMo
compilerConfiguration.setShowWarnings( showWarnings );
+ compilerConfiguration.setFailOnWarning( failOnWarning );
+
compilerConfiguration.setShowDeprecation( showDeprecation );
compilerConfiguration.setSourceVersion( getSource() );