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

(Bernhard) #1


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.

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


(Bernhard) #2 (1.5 KB)