Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 2.4
-
Fix Version/s: None
-
Component/s: Maven Plugin
-
Labels:None
-
Number of attachments :
Description
The following error message is displayed :
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error resolving version for 'org.codehaus.mojo:sonar-maven-plugin': Plugin requires Maven version 3.0
[INFO] ------------------------------------------------------------------------
This error relates to a limitation of Maven 2.0.10 and Maven 2.0.11 which are not able to automatically downgrade the version of the Sonar plugin to be used.
To be able to use Sonar with Maven 2.0.10 and 2.0.11, the following lines must be added to the pom.xml file :
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>1.0-beta-2</version>
</plugin>
</plugins>
</pluginManagement>
</build>
We won't fix this issue as there is a simple workaround.