$ mvn -fos WARN package (Maven 4: fail the build on any WARN) [INFO] Enabled to break the build on log level WARN. [WARNING] Version not locked for default bindings plugins [maven-resources-plugin, maven-compiler-plugin, maven-surefire-plugin, maven-jar-plugin], you should define versions in pluginManagement section of your pom.xml or parent [INFO] Reactor Summary for legacy-parent 1.0.0-SNAPSHOT: [INFO] legacy-parent ...................................... SUCCESS [ x.xxx s] [INFO] legacy-core ........................................ SUCCESS [ x.xxx s] [ERROR] BUILD FAILURE [ERROR] Build failed due to log statements with a higher severity than allowed. Fix the logged issues or remove flag --fail-on-severity (-fos). [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the '-e' switch [ERROR] Re-run Maven using the '-X' switch to enable verbose output