2014-09-01 54 views
0

我將Eclipse Sonar插件配置爲指向我的SonarQube服務器,並且沒問題。我的聲納Qube服務器版本是3.7.4。我跟着this page嘗試分析Java項目代碼時出錯

我在嘗試通過聲納Eclipse插件運行聲納分析時遇到以下錯誤。誰能幫我?

我的標籤我的pom.xml文件正確配置:

 <scm>  
<connection>scm:svn:https://svnjiracloud.cit.com.br/repos/svn/PAPS/trunk/Fontes/PortalRAM/faturamento-auditorias-batch</connection> 
      <developerConnection>scm:svn:https://svnjiracloud.cit.com.br/repos/svn/PAPS/trunk/Fontes/PortalRAM/faturamento-auditorias-batch</developerConnection> 
      <url>https://svnjiracloud.cit.com.br/repos/svn/PAPS/trunk/Fontes/PortalRAM/faturamento-auditorias-batch</url> 
     </scm> 

     Error: 
    15:36:05.138 INFO - Execute PMD 4.3 done: 3865 ms 
    15:36:05.161 INFO - Sensor PmdSensor done: 3893 ms 
    15:36:05.161 INFO - Sensor [email protected] 
    Exception in thread "main" org.sonar.runner.impl.RunnerException: Unable to execute Sonar 
     at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:91) 
     at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:75) 
     at java.security.AccessController.doPrivileged(Native Method) 
     at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:69) 
     at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50) 
     at org.sonar.runner.impl.BatchLauncherMain.execute(BatchLauncherMain.java:41) 
     at org.sonar.runner.impl.BatchLauncherMain.main(BatchLauncherMain.java:59) 
    Caused by: org.sonar.api.utils.SonarException: SCM URL must not be blank. Please check the parameter SCM URL or the <scm> section of Maven pom. 
     at org.sonar.plugins.scmstats.UrlChecker.failure(UrlChecker.java:56) 
     at org.sonar.plugins.scmstats.UrlChecker.check(UrlChecker.java:36) 
     at org.sonar.plugins.scmstats.ScmStatsSensor.analyse(ScmStatsSensor.java:53) 
     at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:72) 
     at org.sonar.batch.phases.PhaseExecutor.execute(PhaseExecutor.java:114) 
     at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:142) 
     at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92) 
     at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77) 
     at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:187) 
     at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:182) 
     at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:175) 
     at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92) 
     at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77) 
     at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:57) 
     at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:45) 
     at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:82) 
     at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92) 
     at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77) 
     at org.sonar.batch.bootstrap.BootstrapContainer.executeTask(BootstrapContainer.java:156) 
     at org.sonar.batch.bootstrap.BootstrapContainer.doAfterStart(BootstrapContainer.java:144) 
     at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:92) 
     at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:77) 
     at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:92) 
     at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:74) 
     at org.sonar.runner.batch.IsolatedLauncher.execute(IsolatedLauncher.java:45) 
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
     at java.lang.reflect.Method.invoke(Method.java:606) 
     at org.sonar.runner.impl.BatchLauncher$1.delegateExecution(BatchLauncher.java:87) 
     ... 6 more 

回答

0

source code from the org.sonar.stats.plugin明確規定對您的SCM節你提供一個空白的URL,這樣看來,因爲你報道,很奇怪相關部分填寫完畢。也許關於Sonar Maven Plugins的問題,試試瀏覽Issues Tracker

我認爲禁用Sonar SCM Stats Plugin應該可以解決這個問題,所以如果它對您來說是合適的解決方案,那就試試吧。

0

我解決更新所述SCM統計[scmstats] SonarQube服務器插件版本的問題從0.10.3.1

由於球員。

相關問題