Maven 在0.0.0.0:9000时无法联系到声纳服务器

Maven 在0.0.0.0:9000时无法联系到声纳服务器,maven,sonarqube,Maven,Sonarqube,我已经在Ubuntu12.04上安装了sonar。我可以在终端启动sonar,但当我尝试将其作为maven插件使用时,mvn sonar:sonar出现错误: [ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default-cli) on project portalE: Sonar server can not be reached at 0.0.0.0:9000. Please ch

我已经在Ubuntu12.04上安装了sonar。我可以在终端启动sonar,但当我尝试将其作为maven插件使用时,
mvn sonar:sonar
出现错误:

[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.0:sonar (default-cli) on project portalE: Sonar server can not be reached at 0.0.0.0:9000. Please check the parameter 'sonar.host.url'. -> [Help 1]
我可以使用浏览器轻松地打开0.0.0.0:9000以及localhost:9000。在pom.xml中,我只添加了:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>sonar-maven-plugin</artifactId>
    <version>2.1</version>
</plugin>

我以前从未使用过声纳,所以请告诉我这里是否有更多配置。我阅读了文档,但看不出哪里出错了。感谢您的帮助。

好吧,我犯了一个非常愚蠢的错误。。。在maven settings.xml文件中,我将URL设置为0.0.0.0:9000,所以我忘记了http:// 对不起,这个问题其实很容易回答

# required metadata
sonar.projectKey=project
sonar.projectName=Project_name
sonar.projectVersion=2.0

# optional description
sonar.projectDescription=Project description 
# path to source directories (required)
sonar.sources=src/

# The value of the property must be the key of the language.
sonar.language=java

# Encoding of the source code
sonar.sourceEncoding=UTF-8