From 5e5916cd83e20df7331bb3534e82f3845951b160 Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Fri, 27 May 2011 12:25:05 +0200 Subject: SONAR-2468 new extension point org.sonar.api.bootstrap.ProjectBuilder --- .../src/main/java/org/sonar/maven/SonarMojo.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'sonar-maven-plugin') 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 0f84702b9c9..75673c63b06 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 @@ -39,12 +39,11 @@ import org.apache.maven.project.MavenProject; import org.apache.maven.project.MavenProjectBuilder; import org.apache.maven.shared.dependency.tree.DependencyTreeBuilder; import org.slf4j.LoggerFactory; +import org.sonar.api.batch.bootstrap.ProjectDefinition; +import org.sonar.api.batch.bootstrap.ProjectReactor; import org.sonar.batch.Batch; import org.sonar.batch.MavenProjectConverter; import org.sonar.batch.bootstrapper.EnvironmentInformation; -import org.sonar.batch.bootstrapper.ProjectDefinition; -import org.sonar.batch.bootstrapper.Reactor; - import java.io.InputStream; /** @@ -146,10 +145,10 @@ public final class SonarMojo extends AbstractMojo { private void executeBatch() throws MojoExecutionException { ProjectDefinition def = MavenProjectConverter.convert(session.getSortedProjects(), project); - Reactor reactor = new Reactor(def); + ProjectReactor reactor = new ProjectReactor(def); - Batch batch = new Batch(getInitialConfiguration(), - reactor, session, project, getLog(), lifecycleExecutor, pluginManager, artifactFactory, + Batch batch = Batch.create(reactor, getInitialConfiguration(), + session, getLog(), lifecycleExecutor, pluginManager, artifactFactory, localRepository, artifactMetadataSource, artifactCollector, dependencyTreeBuilder, projectBuilder, getEnvironmentInformation(), Maven2PluginExecutor.class); batch.execute(); -- cgit v1.2.3