Must-share information (formatted with Markdown):
- SonarQube Enterprise Edition 9.1
- org.sonarsource.scanner.maven:sonar-maven-plugin = 3.9.1.2184
I am getting these ERROR messages during scanning.
[ERROR] Cannot generate ucfg for file /home/jenkins/workspace/.../maven-module/target/sonar/jsp/org/apache/jsp/WEB_002dINF/views/imports/importQueue_jsp.java for method at line X
java.lang.NullPointerException: null
I have tried to exclude the target
folder, but it still tries to scan only these types of files. I have also tried to exclude **/*_jsp.java
files, but that doesn’t work either. I’m very confused how to get rid of these.
<sonar.exclusions>**/target/**/*</sonar.exclusions>
<sonar.exclusions>**/*_jsp.java</sonar.exclusions>
This seems to have been reported before, but no resolution was given. The SONARJAVA-3693 ticket says that the fix version was 7.1 , but we are running in 9.1, so we should be fixed: