When running the mvn checkstyle:check the build fails.
Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check (default-cli) on project my-project-parent: Execution default-cli of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-checkstyle-plugin:2.17:check: java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
-----------------------------------------------------
realm = plugin>org.apache.maven.plugins:maven-checkstyle-plugin:2.17
strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
When running the
mvn checkstyle:check
the build fails.