It seem we got it working.
To avoid the error parent/pom.xml can't be indexed twice
,
We moved our sonar settings from parent/pom.xml
into our settings.xml
(it seem that since 7.6
we should not put the sonar
profile config inside the pom anymore)
Next week we’ll to compare reports more in depth.
But it seem fine so far.
Thanks a lot !
Useful links :
- sonarqube - Sonar maven plugin: same project key for all modules does not work? - Stack Overflow
- Maven multi-module analysis with reactor
- SonarScanner for Maven
EDIT
Well, what fixed the error was not the fact that we moved the sonar settings outside the pom…
But rather the fact that we modified mvn -f ./parent
to mvn -f parent
(notice the ./
)
It’s weird, but it works…