Hi, the Sonar plug-in is not maintained by us. Please check with sonarqube (the vendor of the plug-in you’re using).
Regards, -marc > On 27. May 2020, at 02:16, [email protected] wrote: > > I need help with publishing my jacoco code coverage report to sonarqube using > mvn. > i have specified all the property for sonar: > <jacoco.plugin.version>0.8.3</jacoco.plugin.version> > <antrun.plugin.version>1.7</antrun.plugin.version> > > <sonar.coverage.jacoco.xmlReportPaths>${project.build.directory}/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths> > > <sonar.jacoco.itReportPath>/opt/waterlinedata/jacoco-wld.exec</sonar.jacoco.itReportPath> > <jacoco.version>0.8.3</jacoco.version> > <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin> > <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis> > > <sonar.jacoco.reportPath>/opt/waterlinedata/jacoco-wld.exec</sonar.jacoco.reportPath> > <sonar.language>java</sonar.language> > > <sonar-jacoco-listeners.version>3.8</sonar-jacoco-listeners.version> > > when i run > mvn sonar:sonar > -Dsonar.coverage.jacoco.xmlReportPaths=/root/workspace/AutomationCodeCheck/target/site/jacoco/jacoco.xml > -Dsonar.projectKey=com.xxxx:qa -Dsonar.host.url=http://xxx.xx.xx.xx > -Dsonar.login=xxxxxxxx -Dsonar.branch.name=sonartest > -Dsonar.binaries=target/codecoverage > -Dsonar.jacoco.reportPath=/xxxx/jacoco-wld.exec > > here is the output: > > [INFO] Sensor XML Sensor [xml] > [INFO] 1 source files to be analyzed > [INFO] Sensor XML Sensor [xml] (done) | time=182ms > [INFO] Sensor JaCoCo XML Report Importer [jacoco] > [INFO] 1/1 source files have been analyzed > [INFO] Importing 1 report(s). Turn your logs in debug mode in order to see > the exhaustive list. > [INFO] Sensor JaCoCo XML Report Importer [jacoco] (done) | time=214ms > > [INFO] Sensor Dependency-Check [dependencycheck] (done) | time=7ms > [INFO] Sensor Zero Coverage Sensor > [INFO] Sensor Zero Coverage Sensor (done) | time=1ms > [INFO] Sensor Java CPD Block Indexer > [INFO] Sensor Java CPD Block Indexer (done) | time=1ms > [INFO] SCM provider for this project is: git > [INFO] 1 files to be analyzed > [INFO] 1/1 files analyzed > > when i check in sonar page , i see code coverage as 0% and let is not > listing tests too. > > Please let me know what i am missing. i do not have source files for my > application in my pom.xml , only jars file have > > thanks > > > > > > > > -- > You received this message because you are subscribed to the Google Groups > "JaCoCo and EclEmma Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/08a2d751-66a8-42be-821a-ee637b268d7b%40googlegroups.com > > <https://groups.google.com/d/msgid/jacoco/08a2d751-66a8-42be-821a-ee637b268d7b%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/8160F1D8-2DA4-4B75-9E7F-0E4B19DCAF53%40mountainminds.com.
