There was an error while loading. Please reload this page.
1 parent 973e5b0 commit d0f0bc0Copy full SHA for d0f0bc0
src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
@@ -732,6 +732,12 @@ public void execute()
732
733
compilerConfiguration.setFailOnWarning( failOnWarning );
734
735
+ if ( failOnWarning && !showWarnings )
736
+ {
737
+ getLog().warn( "The property failOnWarning is set to true, but showWarnings is set to false." );
738
+ getLog().warn( "With compiler's warnings silenced the failOnWarning has no effect." );
739
+ }
740
+
741
compilerConfiguration.setShowDeprecation( showDeprecation );
742
743
compilerConfiguration.setSourceVersion( getSource() );
0 commit comments