"Can not execute..." sonar-maven-plugin error and solution

The error after execution of mvn sonar:sonar: "Can not execute SonarQube analysis: Please update sonar-maven-plugin to at least version 2.3" can be fixed by forcing maven to use the recent version in pom.xml


<build>
	<pluginManagement>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>sonar-maven-plugin</artifactId>
				<version>2.5</version>
			</plugin>
		</plugins>
	</pluginManagement>
</build>

The error happens after upgrade to: Sonar 5.0. The Sonar 5.0 requires a >2.3 recent version of the sonar-maven-plugin which does not come as default.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
...the last 150 posts
...the last 10 comments
License