Incompatible with checkstyle plugin
mattnelson opened this issue · comments
Matt Nelson commented
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
Jean-Christophe Gay commented
This is a known problem, a workaround is available here: https://github.com/jcgay/maven-color/wiki/Problems
Let me know if that helps !
Matt Nelson commented
Thanks, that fixed it.