java - Error when i run Sonar local analysis from Eclipse (Juno) - i used maven to build -


i using maven integration of sonar. server set , running properly, , able see report in browser, violations in eclipse.
problem want run local analysis in eclipse can refactor violations , see change dynamically eclipse itself.
local analysis fails , shows below mentioned trace.

runner configuration file: none<br> project configuration file: none<br> runner version: 2.0<br> java version: 1.6.0_41, vendor: sun microsystems inc.<br> os name: "windows 7", version: "6.1", arch: "amd64"<br> default locale: "en_us", source code encoding: "cp1252"<br> server: [http://localhost:9000]<br> work directory: c:\dev\ups eclipse<br> workspace\ips\.metadata\.plugins\org.eclipse.core.resources\.projects\ips-client\org.sonar.ide.eclipse.core<br> total time: 8.058s<br> exception in thread "main" org.sonar.runner.runnerexception: org.sonar.runner.runnerexception: no files matching pattern "dhbcore.jar" in directory "c:\users\sg0213152\.m2\repository\com\ibm\com.ibm.dhbcore\7.5.0.0"<br>     @ org.sonar.runner.runner.delegateexecution(runner.java:288)<br>     @ org.sonar.runner.runner.execute(runner.java:151)<br>     @ org.sonar.runner.main.execute(main.java:84)<br>     @ org.sonar.runner.main.main(main.java:56)<br> caused by: org.sonar.runner.runnerexception: no files matching pattern "dhbcore.jar" in directory "c:\users\sg0213152\.m2\repository\com\ibm\com.ibm.dhbcore\7.5.0.0"<br>     @ org.sonar.runner.internal.batch.sonarprojectbuilder.getlibraries(sonarprojectbuilder.java:440)<br>     @ org.sonar.runner.internal.batch.sonarprojectbuilder.cleanandcheckmoduleproperties(sonarprojectbuilder.java:327)<br>     @ org.sonar.runner.internal.batch.sonarprojectbuilder.cleanandcheckprojectdefinitions(sonarprojectbuilder.java:305)<br>     @ org.sonar.runner.internal.batch.sonarprojectbuilder.generateprojectdefinition(sonarprojectbuilder.java:123)<br>     @ org.sonar.runner.internal.batch.launcher.execute(launcher.java:58)<br>     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)<br>     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39)<br>     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25)<br>     @ java.lang.reflect.method.invoke(method.java:597)<br>     @ org.sonar.runner.runner.delegateexecution(runner.java:285)<br>     ... 3 more<br> final memory: 1m/120m<br> 

p.s: have jar named 'com.ibm.dhbcore-7.5.0.0' present in specified location. also, if rename file exact string searching for, shows other jar missing. tried doing 10-15 jars till gave up.

versions:
eclipse: juno
sonar: 3.4.1
sonar java analyzer (plugin eclipse): 3.0

solution - upgraded sonarqube latest version
upgraded sonarqube 3.7.2
upgraded sonar java analyzer 3.2.0

please check project settings in eclipse, "java build path" => "libraries". should have invalid entries "c:\users\sg0213152.m2\repository\com\ibm\com.ibm.dhbcore\7.5.0.0\dhbcore.jar"

you can try use more recent version of sonarqube eclipse (but may force upgrade sonarqube server). have added existence check before adding file in sonar.libraries protect against invalid eclipse classpath.


Comments