diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-05-27 12:25:05 +0200 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-05-27 12:25:16 +0200 |
commit | 5e5916cd83e20df7331bb3534e82f3845951b160 (patch) | |
tree | ecd59c3f473109fd75050ace9d78dd924cdaab75 /sonar-maven3-plugin | |
parent | c073a325c80ef5d4c0d805b2545dd6be40b1892e (diff) | |
download | sonarqube-5e5916cd83e20df7331bb3534e82f3845951b160.tar.gz sonarqube-5e5916cd83e20df7331bb3534e82f3845951b160.zip |
SONAR-2468 new extension point org.sonar.api.bootstrap.ProjectBuilder
Diffstat (limited to 'sonar-maven3-plugin')
-rw-r--r-- | sonar-maven3-plugin/src/main/java/org/sonar/maven3/SonarMojo.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sonar-maven3-plugin/src/main/java/org/sonar/maven3/SonarMojo.java b/sonar-maven3-plugin/src/main/java/org/sonar/maven3/SonarMojo.java index 82f0847f2de..f4173290c11 100644 --- a/sonar-maven3-plugin/src/main/java/org/sonar/maven3/SonarMojo.java +++ b/sonar-maven3-plugin/src/main/java/org/sonar/maven3/SonarMojo.java @@ -38,12 +38,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; /** @@ -139,10 +138,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, artifactFactory, + Batch batch = Batch.create(reactor, getInitialConfiguration(), + session, getLog(), lifecycleExecutor, artifactFactory, localRepository, artifactMetadataSource, artifactCollector, dependencyTreeBuilder, projectBuilder, getEnvironmentInformation(), Maven3PluginExecutor.class); batch.execute(); |