I’m running maven 2.2.1 and trying to get my build to work with sonar 2.7, but I keep getting this error:
“Error resolving version for ‘org.codehaus.mojo:sonar-maven-plugin’: Plugin requires Maven version 3.0”
The Sonar FAQ rather unhelpfully says:
“This error means that you’re using Maven 2.0.10 or Maven 2.0.11.”
Er, no I’m not, actually!
The suggested workaround is to use 1.0-beta-2 in my POM, but when I do that I get:
“Unable to find resource ‘org.codehaus.mojo:sonar-maven-plugin:maven-plugin:1.0-beta-2′”
It’s one of those maven errors that says it can’t find it in the central repo even though it’s right there in front of your eyes…
Anyway, as a second workaround, I’ve referenced version 1.0-beta-1 and it seems to pick this up fine.
Hope this helps.