我们首次为特定项目设置声纳,我们收到以下错误。
我只是想知道为什么声纳试图从项目中检索信息,因为这是第一次为这个项目设置声纳
[INFO] Building <project1> Application
[INFO] task-segment: [org.codehaus.sonar-plugins.pdf-report:maven-pdfreport-plugin:1.3:generate] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [pdfreport:generate {execution: default-cli}]
[INFO] Team workbook report type selected
[INFO] Retrieving project info for <project1>
[ERROR] Can�t access to Sonar or project doesn't exist on Sonar instance. HTTP KO to http://sonar.server.com:8080/sonar/api/resources?resource=<project1>&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)
at org.sonar.report.pdf.PDFReporter.getProject(PDFReporter.java:114)
at org.sonar.report.pdf.PDFReporter.getReport(PDFReporter.java:71)
at org.sonar.report.pdf.mojo.SonarPDFMojo.execute(SonarPDFMojo.java:162)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
[INFO] [01:22:06.415] Execute org.codehaus.sonar-plugins.pdf-report:maven-pdfreport-plugin:1.3:generate done: 615 ms
而且我不认为问题出在 maven-pdfreport-plugin 上,因为已经在使用声纳的其他项目正在运行而没有任何错误。
谢谢!