aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-maven-plugin/src
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-05-05 23:01:54 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-05-06 00:24:06 +0400
commit804816f9434ba22951a4965155df0837d21f5d22 (patch)
tree396d1e213dea4e8c4a3c5f4c1745baba73e27198 /sonar-maven-plugin/src
parentbe8c67c1396c03bf71cc2fb7770668c54e903e32 (diff)
downloadsonarqube-804816f9434ba22951a4965155df0837d21f5d22.tar.gz
sonarqube-804816f9434ba22951a4965155df0837d21f5d22.zip
SONAR-2298 Fix bug, when root project not a first one in Maven reactor
This situation shouldn't lead to partial analysis.
Diffstat (limited to 'sonar-maven-plugin/src')
-rw-r--r--sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java b/sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java
index eb57053ba8a..0f84702b9c9 100644
--- a/sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java
+++ b/sonar-maven-plugin/src/main/java/org/sonar/maven/SonarMojo.java
@@ -145,7 +145,7 @@ public final class SonarMojo extends AbstractMojo {
}
private void executeBatch() throws MojoExecutionException {
- ProjectDefinition def = MavenProjectConverter.convert(session.getSortedProjects());
+ ProjectDefinition def = MavenProjectConverter.convert(session.getSortedProjects(), project);
Reactor reactor = new Reactor(def);
Batch batch = new Batch(getInitialConfiguration(),