java - sonar-runner throwing exception Ubuntu -


i using local sonar 3.5.1 code statistics java maven project using mvn sonar:sonar. want use sonar-runner same. installed sonar-runner 2.3 , set in ubuntu $path variable , able test using sonar-runner -h. added sonar-project.properties in root directory of project. , content of file like

# required metadata sonar.projectkey=netsgear:analytix sonar.projectname=analytix sonar.projectversion=1.0  # optional description sonar.projectdescription=application analysis  # path source directories (required) sonar.sources=srcdir1,srcdir2  # value of property must key of language. sonar.language=java  # encoding of source code sonar.sourceencoding=utf-8  # additional parameters sonar.my.property=value 

sonar running on localhost://9000. execute "sonar-runner" project directory throwing exception, output of sonar-runner -x is

info: sonarqube server 3.5.1 13:06:50.497 error rojectreactorbuilder - invalid value of sonar.sources  info: ------------------------------------------------------------------------ info: execution failure info: ------------------------------------------------------------------------ total time: 0.483s final memory: 3m/119m info: ------------------------------------------------------------------------ error: error during sonar runner execution org.sonar.runner.impl.runnerexception: unable execute sonar     @ org.sonar.runner.impl.batchlauncher$1.delegateexecution(batchlauncher.java:91)     @ org.sonar.runner.impl.batchlauncher$1.run(batchlauncher.java:75)     @ java.security.accesscontroller.doprivileged(native method)     @ org.sonar.runner.impl.batchlauncher.doexecute(batchlauncher.java:69)     @ org.sonar.runner.impl.batchlauncher.execute(batchlauncher.java:50)     @ org.sonar.runner.api.embeddedrunner.doexecute(embeddedrunner.java:102)     @ org.sonar.runner.api.runner.execute(runner.java:90)     @ org.sonar.runner.main.executetask(main.java:70)     @ org.sonar.runner.main.execute(main.java:59)     @ org.sonar.runner.main.main(main.java:41) caused by: java.lang.illegalstateexception: folder 'srcdir1' not exist  (base directory = /home/workspace/core)     @ org.sonar.runner.batch.projectreactorbuilder.checkexistenceofdirectories(projectreactorbuilder.java:475)     @ org.sonar.runner.batch.projectreactorbuilder.cleanandcheckmoduleproperties(projectreactorbuilder.java:370)     @ org.sonar.runner.batch.projectreactorbuilder.cleanandcheckprojectdefinitions(projectreactorbuilder.java:353)     @ org.sonar.runner.batch.projectreactorbuilder.build(projectreactorbuilder.java:130)     @ org.sonar.runner.batch.isolatedlauncher.createbatch(isolatedlauncher.java:60)     @ org.sonar.runner.batch.isolatedlauncher.execute(isolatedlauncher.java:45)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:606)     @ org.sonar.runner.impl.batchlauncher$1.delegateexecution(batchlauncher.java:87)     ... 9 more 

may know reson

i guess have error in config.

# path source directories (required) sonar.sources=srcdir1,srcdir2 

are srcdir1 , srcdir2 folders have source files? seems copied config tutorial , forget insert correct folder names.

also can remove following lines, because don't think have custom sonar parameters named this.

# additional parameters sonar.my.property=value 

Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

php - MySQLi multi_query results for later use -