diff options
Diffstat (limited to 'sonar-core-maven-plugin')
-rw-r--r-- | sonar-core-maven-plugin/src/main/java/org/sonar/maven2/BatchMojo.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sonar-core-maven-plugin/src/main/java/org/sonar/maven2/BatchMojo.java b/sonar-core-maven-plugin/src/main/java/org/sonar/maven2/BatchMojo.java index 8916b47e66a..e2f6e30d0dc 100644 --- a/sonar-core-maven-plugin/src/main/java/org/sonar/maven2/BatchMojo.java +++ b/sonar-core-maven-plugin/src/main/java/org/sonar/maven2/BatchMojo.java @@ -19,6 +19,8 @@ */ package org.sonar.maven2; +import org.sonar.batch.MavenReactor; + import ch.qos.logback.classic.LoggerContext; import ch.qos.logback.classic.joran.JoranConfigurator; import ch.qos.logback.core.joran.spi.JoranException; @@ -135,7 +137,8 @@ public final class BatchMojo extends AbstractMojo { private void executeBatch() throws MojoExecutionException { - Batch batch = new Batch(getInitialConfiguration(), session, project, + MavenReactor reactor = new MavenReactor(session); + Batch batch = new Batch(getInitialConfiguration(), reactor, session, project, getLog(), lifecycleExecutor, pluginManager, artifactFactory, localRepository, artifactMetadataSource, artifactCollector, dependencyTreeBuilder, projectBuilder, Environment.MAVEN2, Maven2PluginExecutor.class); |