I am using sonar version 8.9.6. I know this issue has been asked around a lot of times and i have tried a lot of those and none of the solutions has worked for me.
following are some of the things that i have tried.
1)
<sonar.exclusions>
// my domain package here
</sonar.exclusions>
added the following plugin
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy-dependencies</id> <phase>package</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> <includeArtifactIds>lombok</includeArtifactIds> </configuration> </execution> </executions> </plugin>
and then added the following property
<sonar.java.libraries>target/dependency/*.jar</sonar.java.libraries>
Added lombok.config and added the following properties
config.stopBubbling = true lombok.addLombokGeneratedAnnotation = true
None of these have worked for me and especially sonar exclusions doesn't work at all. Any help would be appreciated and Thanks in advance.