Fix: Scan parameters in sonar-project.properties 86/15286/1
authorMatthew Watkins <mwatkins@linuxfoundation.org>
Mon, 17 Nov 2025 15:52:35 +0000 (15:52 +0000)
committerMatthew Watkins <mwatkins@linuxfoundation.org>
Mon, 17 Nov 2025 15:52:35 +0000 (15:52 +0000)
The Maven build command (`mvn clean verify`) compiles the code but doesn't copy
dependencies to the `target/dependency` directory. This requires the
`maven-dependency-plugin` with the `copy-dependencies` goal, which is not
configured in the `pom.xml`.

Change-Id: I7e271b25affe5ec599f4b7edb0950b1f4ddc4c53
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
sonar-project.properties

index 4f26e42..7d0b1b9 100644 (file)
@@ -29,8 +29,8 @@ sonar.sourceEncoding=UTF-8
 
 # Library dependencies (Maven dependencies for more precise analysis)
 # This points to all JAR files downloaded by Maven during the build
-sonar.java.libraries=**/target/dependency/*.jar,~/.m2/repository/**/*.jar
-sonar.java.test.libraries=**/target/dependency/*.jar,~/.m2/repository/**/*.jar
+sonar.java.libraries=~/.m2/repository/**/*.jar
+sonar.java.test.libraries=~/.m2/repository/**/*.jar
 
 # JaCoCo coverage report paths
 sonar.coverage.jacoco.xmlReportPaths=**/target/site/jacoco/jacoco.xml
\ No newline at end of file