Our Jenkins executes a goal to run Sonar analyzing on a Multi-module reactor project via a command:
mvn org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
-pl …/
-pl …/
–also-make
${sonarArguments}
-f ${WORKSPACE}/Parent/pom.xml
EXPECTED:
During execution previously it used to report (it worked e.g. a month ago)
[INFO] ------------- Run sensors on module <module1>
…
[INFO] ------------- Run sensors on module <module2>
…
[INFO] ------------- Run sensors on module <moduleN>
ACTUALLY:
We get a log full of same lines before analyzing for every of a child modules.
It’s very confusing and makes it harder to debug in case of troubles.
[INFO] ------------- Run sensors on module <project name>
…
[INFO] ------------- Run sensors on module <project name>
…
[INFO] ------------- Run sensors on module <project name>