声纳maven整合

11 sonarqube

我按照指示将Sonar与Maven集成 - 更改了settings.xml以包含声纳存储库:

http:// localhost:9000/deploy/maven

我已经验证我能够在以下位置看到readme.txt文件:

http://localhost:9000/deploy/maven/README.txt

但在运行时,sonar:sonar我不断收到以下消息:

[INFO] [sonar:sonar]
[INFO] Sonar host: http: //localhost:9000
[INFO] Sonar version: 1.7
Downloading: http: //localhost:9000/deploy/maven/org/codehaus/sonar/runtime/sonar
-core-maven-plugin/20090803213910/sonar-core-maven-plugin-20090803213910.pom
Downloading: http: //<MY SERVER URL>:8081/nexus/content/groups/public/org/codehaus/
sonar/runtime/sonar-core-maven-plugin/20090803213910/sonar-core-maven-plugin-200
90803213910.pom
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Can not execute Sonar

Embedded error: Unable to build project for plugin 'org.codehaus.sonar.runtime:s
onar-core-maven-plugin': POM 'org.codehaus.sonar.runtime:sonar-core-maven-plugin
' not found in repository: Unable to download the artifact from any repository

  org.codehaus.sonar.runtime:sonar-core-maven-plugin:pom:20090803213910
Run Code Online (Sandbox Code Playgroud)

从指定的远程存储库:

声纳(http:// localhost:9000/deploy/maven),

nexus(http://:8081/nexus/content/groups/public),

for project org.codehaus.sonar.runtime:sonar-core-maven-plugin [INFO] ------------------------------ ------------------------------------------

知道我错过了什么吗?

小智 0

localhost 不是远程主机;localhost 是您所在计算机的别名。所以它试图从您机器上运行的 Maven 存储库服务器下载内容。