Closed mhagnumdw closed 4 years ago
After breaking the command in two steps it worked.
mvn clean clover:setup test clover:aggregate clover:save-history clover:clover clover:log sonar:sonar
# primeiro gera o report de test
mvn clean clover:setup test clover:aggregate clover:save-history clover:clover clover:log
# em seguida envia para o SonarQube
mvn sonar:sonar
Does anyone know why?
The log of the sonar-maven-plugin execution is different between both cases. If necessary I can attach it here.
In my case I am always getting Look at SonarQube documentation to know the expected XML format.: Unknown report version: null
. Regardless running commands together or split in two steps.
Seems more related with how the maven plugin works than with the sonar plugin. There seems to be similar issue with some gradle executions. But this repository is not responsible of creating any report. It just allows to parse the generated report. Maybe could you post your question here : https://github.com/openclover/clover ?
Could you check please this new version of the documentation ? https://github.com/sfeir-open-source/sonar-clover/blob/1a6bf2f89659a749a4c384a0558067b7f9636ca0/README.md this may allows user to better understand the purpose of this plugin ?
Hi @Tony-Proum , I preferred to look around here: https://github.com/sfeir-open-source/sonar-clover/compare/feat/wrapper
And it looks good to me!
This branch were merge, I think this issue can now be closed.
Describe the bug Error during parsing of the generic coverage report '/mnt/c/ambiente/workspace/xxx/target/site/clover/clover.xml'. Look at SonarQube documentation to know the expected XML format.: Unknown report version: null. This parser only handles version 1. -> [Help 1]
To Reproduce
Expected behavior No error at the end of execution
Screenshots
Error
SonarQube + Clover plugin
Versions:
Additional context
pom.xml