Environment:
Sonar LTS 7.9 with latest SonarJava plugin
Multiple sonar.java.checkstyle.reportPaths configured for ./target/checkstyle-result.xml and ./target/checkstyle-ktlint.xml
Running this results in ERROR message with stracktrace:
[ ERROR ] Failed to import external issues report: /home/jenkins/agent/workspace/foo/./target/checkstyle-ktlint.xml 00:26:28.385 java.io.FileNotFoundException: /home/jenkins/agent/workspace/foo/./target/checkstyle-ktlint.xml (No such file or directory) 00:26:28.385 at java.base/java.io.FileInputStream.open0(Native Method) 00:26:28.385 at java.base/java.io.FileInputStream.open(FileInputStream.java:219) 00:26:28.385 at java.base/java.io.FileInputStream.(FileInputStream.java:157) 00:26:28.385 at org.sonar.java.externalreport.CheckstyleSensor.importReport(CheckstyleSensor.java:65) 00:26:28.385 at org.sonar.java.externalreport.CheckstyleSensor.lambda$execute$1(CheckstyleSensor.java:61)
As not all maven modules provide all the checkstyle reports, the expected behavior would be to print only a WARNING without stacktrace as the Jacoco Plugin does.
Kind regards,
Michael