JaCoCo SonarQube incompatible version 1007

后端 未结 8 1918
轮回少年
轮回少年 2020-12-08 12:50

I\'m using SonarQube for code quality control and suddenly builds that would otherwise pass can\'t be analyzed and fails.

[INFO] [00:00:03.630] Analy

8条回答
  •  有刺的猬
    2020-12-08 13:12

    As kdowbecki mentionned it, this error is most likely due to an update of jacoco-maven-plugin.

    Your SonarQube is most likely now using the new version of Jacoco Maven Plugin (probably the new 0.7.5.201505241946) but is actually trying to read an old version of a jacoco.exec (in your case it might be reading a jacoco.exec generated by jacoco maven plugin version 0.7.4.201502262128) which results in an incompatibility thrown by JaCoCo.

    To fix this problem, you should make sure all your SonarQube/Jenkins jobs generate a JaCoCo report each time and do not rely on an older version of jacoco.exec that might have been generated by a previous job.

提交回复
热议问题