sonar.projectBaseDir doesn't work with non-multi-module projects


(Bernhard) #1

sonar-maven-plugin:3.4.0.905:sonar

When building a not multi module project with maven the configuration sonar.projectBaseDir is ignored and the build direcory is always taken as project base dir. It works correctly with multi module projects.

This is a problem for example using lcov, because the paths of the lcov file are always expected to be from the sonar.projectBaseDir.

[code]
[INFO] 19:46:56.340 Analysing [/mnt/jenkins/workspace/nightly/target/coverage/lcov.info]
[WARNING] 19:46:56.347 Could not resolve 309 file paths in [/mnt/jenkins/workspace/nightly/target/coverage/lcov.info], first unresolved path: app/resolver.js

[code]


(Bernhard) #2

testcase.zip.txt (1.5 KB)