From 4524ae85a3d76523fd64cec9c6ea63205d889eae Mon Sep 17 00:00:00 2001 From: Matthew Watkins Date: Mon, 17 Nov 2025 15:52:35 +0000 Subject: [PATCH] Fix: Scan parameters in sonar-project.properties 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 --- sonar-project.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonar-project.properties b/sonar-project.properties index 4f26e42..7d0b1b9 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -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 -- 2.16.6