sonarqube - error in ant sonar build -
sonarqube - error in ant sonar build -
i new sonar , stuck error tried things possible sorting error soln provided still wont fix. checked sonar properties per it seems fine
kindly help. logs below:
d:\khushboo\repository\voice_br_cdv_gateway-1406\_voicegateway-1406\app\voicegateway>ant sonar -dworkspace=..\workspace.xml -dworkshop.home=d:\oracle\middleware1workshop_10.3 -dworkshop.lib.dir=..\workshop-lib -dwl.home=d:\oracle\middleware1\wlserver_10.3 buildfile: d:\khushboo\repository\voice_br_cdv_gateway-1406\_voicegateway-1406\a pp\voicegateway\build.xml sonar: [sonar:sonar] apache ant(tm) version 1.9.2 compiled on july 8 2013 [sonar:sonar] sonar ant task version: 2.0 [sonar:sonar] loaded from: file:/d:/jdevkhus/apache-ant-1.9.2/lib/sonar-ant-task-2.0.jar [sonar:sonar] sonar work directory: d:\khushboo\repository\voice_br_cdv_gateway- 1406\_voicegateway-1406\app\voicegateway\.sonar [sonar:sonar] sonar server: http://localhost:9000 [sonar:sonar] 17:03:25.745 info - load batch settings [sonar:sonar] 17:03:25.787 info - user cache: c:\users\908156\.sonar\cache [sonar:sonar] 17:03:25.792 info - install plugins [sonar:sonar] 17:03:26.279 info - install jdbc driver [sonar:sonar] 17:03:26.285 warn - h2 database should used evaluation pur pose [sonar:sonar] 17:03:26.286 info - create jdbc datasource jdbc:h2:tcp://loca lhost/sonar [sonar:sonar] 17:03:26.788 info - initializing hibernate [sonar:sonar] 17:03:30.064 info - load project settings [sonar:sonar] 17:03:30.085 info - apply project exclusions [sonar:sonar] 17:03:30.142 info - ------------- scan simple java project analy zed sonarqube ant task [sonar:sonar] 17:03:30.144 info - load module settings [sonar:sonar] 17:03:30.435 info - quality profile : [name=sonar way,language=ja va] [sonar:sonar] 17:03:30.444 info - excluded tests: [sonar:sonar] 17:03:30.444 info - **/package-info.java [sonar:sonar] 17:03:30.468 info - configure maven plugins [sonar:sonar] 17:03:30.505 info - compare previous analysis [sonar:sonar] 17:03:30.520 info - compare on 30 days (2014-09-28) [sonar:sonar] 17:03:30.528 info - compare previous version [sonar:sonar] 17:03:30.573 info - initializer jacocoantinitializer... [sonar:sonar] 17:03:30.596 info - jacoco agent (version 0.6.2.201302030002) ext racted: c:\users\908156\appdata\local\temp\jacocoagent32395.jar [sonar:sonar] 17:03:30.597 info - initializer jacocoantinitializer done: 24 ms [sonar:sonar] 17:03:30.597 info - base of operations dir: d:\khushboo\repository\voice_br_cdv _gateway-1406\_voicegateway-1406\app\voicegateway [sonar:sonar] 17:03:30.597 info - working dir: d:\khushboo\repository\voice_br_ cdv_gateway-1406\_voicegateway-1406\app\voicegateway\.sonar [sonar:sonar] 17:03:30.598 info - source dirs: d:\khushboo\repository\voice_br_ cdv_gateway-1406\_voicegateway-1406\app\voicegatewayservice\serviceimpl\src [sonar:sonar] 17:03:30.598 info - binary dirs: d:\khushboo\java\sonar-3.7.3\lib \*.jar [sonar:sonar] 17:03:30.598 info - source encoding: windows-1252, default locale : en_us [sonar:sonar] 17:03:30.789 info - sensor javasourceimporter... [sonar:sonar] 17:03:31.105 info - sensor javasourceimporter done: 316 ms [sonar:sonar] 17:03:31.105 info - sensor javasquidsensor... [sonar:sonar] 17:03:31.163 info - java ast scan... build failed d:\khushboo\repository\voice_br_cdv_gateway-1406\_voicegateway-1406\app\voicegat eway\build.xml:404: org.sonar.runner.runnerexception: org.sonar.squid.api.analys isexception: sonar unable analyze file : 'd:\khushboo\repository\voice_br_ cdv_gateway-1406\_voicegateway-1406\app\voicegatewayservice\serviceimpl\src\main \java\com\comcast\usage\cemp\utils\debughandler.java' @ org.sonar.runner.runner.delegateexecution(runner.java:288) @ org.sonar.runner.runner.execute(runner.java:151) @ org.sonar.ant.sonartask.launchanalysis(sonartask.java:93) @ org.sonar.ant.sonartask.execute(sonartask.java:75) @ org.apache.tools.ant.unknownelement.execute(unknownelement.java:292) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl. java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodacces sorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.apache.tools.ant.dispatch.dispatchutils.execute(dispatchutils.jav a:106) @ org.apache.tools.ant.task.perform(task.java:348) @ org.apache.tools.ant.target.execute(target.java:435) @ org.apache.tools.ant.target.performtasks(target.java:456) @ org.apache.tools.ant.project.executesortedtargets(project.java:1393) @ org.apache.tools.ant.project.executetarget(project.java:1364) @ org.apache.tools.ant.helper.defaultexecutor.executetargets(defaultexe cutor.java:41) @ org.apache.tools.ant.project.executetargets(project.java:1248) @ org.apache.tools.ant.main.runbuild(main.java:851) @ org.apache.tools.ant.main.startant(main.java:235) @ org.apache.tools.ant.launch.launcher.run(launcher.java:280) @ org.apache.tools.ant.launch.launcher.main(launcher.java:109) caused by: org.sonar.squid.api.analysisexception: sonar unable analyze fil e : 'd:\khushboo\repository\voice_br_cdv_gateway-1406\_voicegateway-1406\app\voi cegatewayservice\serviceimpl\src\main\java\com\comcast\usage\cemp\utils\debughan dler.java' @ org.sonar.java.ast.astscanner.scan(astscanner.java:132) @ org.sonar.java.javasquid.scansources(javasquid.java:113) @ org.sonar.java.javasquid.scan(javasquid.java:107) @ org.sonar.plugins.java.javasquidsensor.analyse(javasquidsensor.java:7 9) @ org.sonar.batch.phases.sensorsexecutor.execute(sensorsexecutor.java:7 2) @ org.sonar.batch.phases.phaseexecutor.execute(phaseexecutor.java:114) @ org.sonar.batch.scan.modulescancontainer.doafterstart(modulescanconta iner.java:142) @ org.sonar.api.platform.componentcontainer.startcomponents(componentco ntainer.java:92) @ org.sonar.api.platform.componentcontainer.execute(componentcontainer. java:77) @ org.sonar.batch.scan.projectscancontainer.scan(projectscancontainer.j ava:187) @ org.sonar.batch.scan.projectscancontainer.scanrecursively(projectscan container.java:182) @ org.sonar.batch.scan.projectscancontainer.doafterstart(projectscancon tainer.java:175) @ org.sonar.api.platform.componentcontainer.startcomponents(componentco ntainer.java:92) @ org.sonar.api.platform.componentcontainer.execute(componentcontainer. java:77) @ org.sonar.batch.scan.scantask.scan(scantask.java:57) @ org.sonar.batch.scan.scantask.execute(scantask.java:45) @ org.sonar.batch.bootstrap.taskcontainer.doafterstart(taskcontainer.ja va:82) @ org.sonar.api.platform.componentcontainer.startcomponents(componentco ntainer.java:92) @ org.sonar.api.platform.componentcontainer.execute(componentcontainer. java:77) @ org.sonar.batch.bootstrap.bootstrapcontainer.executetask(bootstrapcon tainer.java:156) @ org.sonar.batch.bootstrap.bootstrapcontainer.doafterstart(bootstrapco ntainer.java:144) @ org.sonar.api.platform.componentcontainer.startcomponents(componentco ntainer.java:92) @ org.sonar.api.platform.componentcontainer.execute(componentcontainer. java:77) @ org.sonar.batch.bootstrapper.batch.startbatch(batch.java:92) @ org.sonar.batch.bootstrapper.batch.execute(batch.java:74) @ org.sonar.batch.batch.execute(batch.java:103) @ org.sonar.runner.internal.batch.launcher.executebatch(launcher.java:6 9) @ org.sonar.runner.internal.batch.launcher.execute(launcher.java:61) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl. java:39) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodacces sorimpl.java:25) @ java.lang.reflect.method.invoke(method.java:597) @ org.sonar.runner.runner.delegateexecution(runner.java:285) ... 20 more caused by: org.sonar.squid.api.analysisexception: source directory not correspond bundle declaration com.comcast.usage.cemp.utils @ org.sonar.java.ast.visitors.packagevisitor.checkphysicaldirectory(pac kagevisitor.java:101) @ org.sonar.java.ast.visitors.packagevisitor.getpackagekey(packagevisit or.java:70) @ org.sonar.java.ast.visitors.packagevisitor.visitfile(packagevisitor.j ava:39) @ com.sonar.sslr.impl.ast.astwalker.walkandvisit(astwalker.java:67) @ org.sonar.java.ast.astscanner.scan(astscanner.java:93) ... 52 more total time: 14 seconds
check stacktrace carefully. first message:
caused by: org.sonar.squid.api.analysisexception: sonar unable analyze fil e : 'd:\khushboo\repository\voice_br_cdv_gateway-1406_voicegateway-1406\app\voi cegatewayservice\serviceimpl\src\main\java\com\comcast\usage\cemp\utils\debughandler.java'
is explained second:
caused by: org.sonar.squid.api.analysisexception: source directory not correspond bundle declaration com.comcast.usage.cemp.utils
so... sonar's "src" attribute set following?
d:\khushboo\repository\voice_br_cdv_gateway-1406_voicegateway-1406\app\voicegatewayservice\serviceimpl\src\main\java ant sonarqube
Comments
Post a Comment