Logging error when executing Maven SonarQube plugin

1.5k views Asked by At

I've been facing an issue with Maven SonarQube plugin (v2.6) when Maven version is recent (strictly larger than 3.1).

Here is what I run:

mvn clean verify -Psonar
mvn org.codehaus.mojo:sonar-maven-plugin:2.6:sonar -Psonar

The first invocation makes sure sources are compiled and JaCoCo agent is prepared.

The interesting part comes, when the second command is run:

[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project merlin-schema: Error setting Log implementation.  Cause: java.lang.reflect.InvocationTargetException: org/slf4j/Marker -> [Help 1]

Any fix to be published?

1

There are 1 answers

9
Julien H. - SonarSource Team On BEST ANSWER

Replacing default Maven logging implementation is currently not supported. Ticket created: http://jira.sonarsource.com/browse/MSONAR-122