Package org.sonar.api.batch.maven

Examples of org.sonar.api.batch.maven.MavenPlugin


  public final MavenPluginHandler execute(Project project, DefaultModuleFileSystem fs, MavenPluginHandler handler) {
    for (String goal : handler.getGoals()) {
      if (goal == null) {
        throw new IllegalStateException("Maven goal can't be null");
      }
      MavenPlugin plugin = MavenPlugin.getPlugin(project.getPom(), handler.getGroupId(), handler.getArtifactId());
      execute(project,
        fs,
        getGoal(handler.getGroupId(), handler.getArtifactId(), plugin != null && plugin.getPlugin() != null ? plugin.getPlugin().getVersion() : null, goal));
    }
    return handler;
  }
View Full Code Here


    }
    savePom(project);
  }

  protected void configureHandler(Project project, MavenPluginHandler handler) {
    MavenPlugin plugin = MavenPlugin.registerPlugin(project.getPom(), handler.getGroupId(), handler.getArtifactId(), handler.getVersion(), handler.isFixedVersion());
    handler.configure(project, plugin);
  }
View Full Code Here

TOP

Related Classes of org.sonar.api.batch.maven.MavenPlugin

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.