Skip to content

Commit d0f0bc0

Browse files
pzygieloslawekjaranowski
authored andcommitted
[MCOMPILER-457] Warn about warn-config conflicting values
1 parent 973e5b0 commit d0f0bc0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,12 @@ public void execute()
732732

733733
compilerConfiguration.setFailOnWarning( failOnWarning );
734734

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+
735741
compilerConfiguration.setShowDeprecation( showDeprecation );
736742

737743
compilerConfiguration.setSourceVersion( getSource() );

0 commit comments

Comments
 (0)