gradle - org.sonar.api.utils.SonarException: Validation of project reactor failed -


i trying set sonarqube gradle project.

i have started local sonar process:

c:\dev\sonar\sonar-3.7\bin\windows-x86-64>startsonar.bat wrapper  | --> wrapper started console wrapper  | launching jvm... jvm 1    | wrapper (version 3.2.3) http://wrapper.tanukisoftware.org jvm 1    |   copyright 1999-2006 tanuki software, inc.  rights reserved. jvm 1    | jvm 1    | 2013-08-15 15:44:56.847:info:oejs.server:jetty-7.6.11.v20130520 jvm 1    | jruby limited openssl loaded. http://jruby.org/openssl jvm 1    | gem install jruby-openssl full support. jvm 1    | 2013-08-15 15:45:27.198:info:oejsh.contexthandler:started o.e.j.w.web appcontext{/,file:/c:/dev/sonar/sonar-3.7/war/sonar-server/},file:/c:/dev/sonar/ sonar-3.7/war/sonar-server jvm 1    | 2013-08-15 15:45:27.261:info:oejs.abstractconnector:started selectcha nnelconnector@0.0.0.0:9000 

i have applied sonar plugin: apply plugin: "sonar-runner"

when execute gradle sonar task, seeing error:

gradle sonarrunner 

...

* went wrong: execution failed task ':shared:sonarrunner'. > org.sonar.api.utils.sonarexception: validation of project reactor failed:   o root[mod_ericfrancis2]:shared not valid project or module key 

does have ideas on how fix error? memory issue?

apparently, gradle project group or name contains whitespace. value becomes part of default value sonar project key, must not contain whitespace. fix problem, can either reconfigure gradle project group or name (it's safer not have whitespace in there anyway), or reconfigure sonar project key project applies sonar-runner plugin. latter this:

sonarproperties {     property "sonar.projectkey", "foo:shared" } 

if offender gradle project name (rather group), may have reconfigure "sonar.projectname" well.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -