我正在用聲納運行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