Execution of "mvn sonar:sonar" with no external access

Posted by romaintaz on Stack Overflow See other posts from Stack Overflow or by romaintaz
Published on 2010-06-16T08:47:15Z Indexed on 2010/06/16 9:12 UTC
Read the original article Hit count: 429

Filed under:
|

Hello,

I try to execute the mvn sonar:sonar command on a machine where Maven is configured to have no access to external repositories (in reality, this is not exactly the case, but it helps me to explain my problem).

So currently, if I run this command, I get the following error:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.codehaus.mojo:sonar-maven-plugin' does not exist or no valid version could be found

I think it means that I have some incorrect metadata in my local repository, as I have a [local repo]\org\codehaus\mojo\sonar-maven-plugin\1.0-beta-1 directory (with the JAR inside, of course).

Have you any idea why my command is failing?

tech infos: Maven 2.2.1, Java 1.6, Sonar 2.1.2

© Stack Overflow or respective owner

Related posts about maven-2

Related posts about sonar