[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/
For me it was because I had exactly the same class (for example com.test.MyClass) name and package name in two different sub modules (maven), MyClass in first module is larger i.e. 120 lines of code. MyClass in second module is shorter, then the exception was thrown since JaCoCo though the report was for that.
Solution was to rename one of the classes or move it into a different package.
i.e. :
com.test.MyClass
and
com.test.MyClassB
OR:
com.test.MyClass
and
com.test.foo.MyClass