sonar maven plugin build error, SonarQube version: null

前端 未结 6 1661
你的背包
你的背包 2021-01-05 12:48

My jenkins builds just started to fail with this message:

[INFO] --- sonar-maven-plugin:2.7:sonar (default-cli) @ cividas-core-web ---
[INFO] artifact com.on         


        
6条回答
  •  孤独总比滥情好
    2021-01-05 13:23

    The way SonarQube server version is passed to maven-sonar-plugin has changed in v2.7, along with other things, since it uses now sonar-runner 2.5.

    There is indeed a bug when using it with SonarQube instances < 4.3, for which I opened the ticket: https://jira.sonarsource.com/browse/MSONAR-131

    Note that SQs < 4.5 (current LTS) are no longer actively supported and there is no guarantee that sonar-maven-plugin won't be incompatible with them in other ways due to the new interface exposed by sonar-runner 2.5.

    For these cases, it is probably best to lock the maven plugin version to 2.6, as already suggested.

提交回复
热议问题