sonarqube - Sonar Ant task execution error -


i wrote ant sonar task when executing in console getting following error

 e:\liferay\liferay 6.2\workspace\plugins\build.xml:305:   org.sonar.batch.bootstrapper.bootstrapexception: java.io.ioexception:   server returned http response code: 400 url: http://localhost:9000/sonar/batch/ 

even have tried in ways following ant target

<target name="sonar">             <taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml">                     <!-- update following line, or put "sonar-ant-task-*.jar" file in "$home/.ant/lib" folder -->                     <classpath path="d:\sonar-ant-task-1.3.jar" />             </taskdef>              <property name="sonar.host.url" value="http://localhost:9000/sonar" />               <property name="sonar.jdbc.url" value="jdbc:mysql://localhost:3306/sonar?useunicode=true&amp;characterencoding=utf8" />             <property name="sonar.jdbc.driverclassname" value="com.mysql.jdbc.driver" />              <!-- username , password of database -->             <property name="sonar.jdbc.username" value="root" />             <property name="sonar.jdbc.password" value="" />              <!-- list of mandatories sonar properties -->             <property name="sonar.sources" value="portlets/${projectname}/docroot/web-inf/src" />             <property name="sonar.projectname" value="${projectnameinsonarportal}" />                    <property name="sonar.binaries" value="portlets/${projectname}/docroot/web-inf/classes" />             <property name="sonar.libraries" value="portlets/${projectname}/docroot/web-inf/lib" />              <!-- console info -->             <echo>the given project name ${projectname}></echo>             <echo>the project name in sonar portal ${projectnameinsonarportal}</echo>             <echo>the sonar sources directory ${sonar.sources}</echo>             <!-- execute sonar -->              <sonar:sonar />             <!--<sonar:sonar key="encore-portal" version="0.1-snapshot"  xmlns:sonar="antlib:org.sonar.ant"/>-->         </target> 

the properties set in sonar.properties

sonar.web.host: localhost sonar.web.port: 9000 sonar.web.context: /sonar sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useunicode=true&characterencoding=utf8 sonar.jdbc.driverclassname: com.mysql.jdbc.driver 

can on this.i have googled solutions did not work me.i spent lot time on this.please add fortune hands hands


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -