Sonarqube scan error with line out of range?

后端 未结 7 889
南方客
南方客 2020-12-30 23:26

[07:43:57]W: [Step 1/1] ERROR: Error during SonarQube Scanner execution

[07:43:57]W: [Step 1/1] ERROR: Line 523 is out of range in the file src/main/

7条回答
  •  -上瘾入骨i
    2020-12-30 23:47

    I had the same issue when using sonar maven plugin and jacoco test reports. mvn sonar:sonar relies on an existintig jacoco report, when the source code was changed (lines had been removed), but the test report wasn't updated this error occurred. Running mvn clean test sonar:sonar solved it.

提交回复
热议问题