我正在用声纳运行maven。与声纳认证的Maven
-Dsonar.login=login -Dsonar.password=password
这些设置不适合我的工作:由于我激活了声纳为安全起见,认证,从那时起,我得到了以下错误:
[ERROR] Can´t access to Sonar or project doesn't exist on Sonar instance. HTTP KO to http://localhost:9000/api/resources?resource=com.myproject.soft:soft&depth=0&format=xml
java.io.IOException: Can´t access to Sonar or project doesn't exist on Sonar instance.
at org.sonar.report.pdf.util.SonarAccess.getUrlAsDocument(SonarAccess.java:132)
at org.sonar.report.pdf.entity.Project.initializeProject(Project.java:98)
根据http://docs.sonarqube.org/display/SONAR/Analyzing+with+Maven我应该使用下面的参数。
我使用完整的命令是:
mvn install sonar:sonar -Dsonar.login=login -Dsonar.password=password
在服务器上删除它吗? – 2013-10-22 20:43:21
是的,实际上,JAR应该从“extensions/plugins”文件夹中删除。 – 2013-10-23 13:34:06
是的,工作,thnx – 2013-10-23 14:58:25