diff --git a/eo-maven-plugin/src/main/java/org/eolang/maven/LintMojo.java b/eo-maven-plugin/src/main/java/org/eolang/maven/LintMojo.java index 9373b6dcaf..50854405b7 100644 --- a/eo-maven-plugin/src/main/java/org/eolang/maven/LintMojo.java +++ b/eo-maven-plugin/src/main/java/org/eolang/maven/LintMojo.java @@ -80,7 +80,7 @@ public final class LintMojo extends SafeMojo { @Parameter( property = "eo.failOnWarning", required = true, - defaultValue = "false" + defaultValue = "true" ) private boolean failOnWarning; diff --git a/eo-maven-plugin/src/test/java/org/eolang/maven/LintMojoTest.java b/eo-maven-plugin/src/test/java/org/eolang/maven/LintMojoTest.java index 2d7d86d677..51f153ab25 100644 --- a/eo-maven-plugin/src/test/java/org/eolang/maven/LintMojoTest.java +++ b/eo-maven-plugin/src/test/java/org/eolang/maven/LintMojoTest.java @@ -64,7 +64,9 @@ void lintsAgainAfterModification(@Mktmp final Path temp, @RandomProgram final St .plugins() .appendItself() .execution() - .goals("register", "parse", "optimize", "shake", "lint"); + .goals("register", "parse", "optimize", "shake", "lint") + .configuration() + .set("failOnWarning", "false"); f.exec("process-classes"); final long before = f.files().file( "target/eo/6-lint/foo.xmir"