Class MavenEmbedder

java.lang.Object
org.kie.maven.integration.embedder.MavenEmbedder

public class MavenEmbedder extends Object
  • Field Details

    • DEFAULT_GLOBAL_SETTINGS_FILE

      public static final File DEFAULT_GLOBAL_SETTINGS_FILE
  • Constructor Details

  • Method Details

    • buildMavenExecutionRequest

      protected org.apache.maven.execution.MavenExecutionRequest buildMavenExecutionRequest(MavenRequest mavenRequest) throws MavenEmbedderException, org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Throws:
      MavenEmbedderException
      org.codehaus.plexus.component.repository.exception.ComponentLookupException
    • getMavenRepositoryConfiguration

      protected MavenRepositoryConfiguration getMavenRepositoryConfiguration()
    • getSettings

      public org.apache.maven.settings.Settings getSettings() throws MavenEmbedderException, org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Throws:
      MavenEmbedderException
      org.codehaus.plexus.component.repository.exception.ComponentLookupException
    • getLocalRepository

      public org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository() throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException
    • getLocalRepositoryPath

      public String getLocalRepositoryPath()
    • readProject

      public org.apache.maven.project.MavenProject readProject(InputStream mavenProjectStream) throws org.apache.maven.project.ProjectBuildingException, MavenEmbedderException
      Throws:
      org.apache.maven.project.ProjectBuildingException
      MavenEmbedderException
    • readProject

      public org.apache.maven.project.MavenProject readProject(File mavenProject) throws org.apache.maven.project.ProjectBuildingException, MavenEmbedderException
      Throws:
      org.apache.maven.project.ProjectBuildingException
      MavenEmbedderException
    • readProjects

      public List<org.apache.maven.project.MavenProject> readProjects(File mavenProject, boolean recursive) throws org.apache.maven.project.ProjectBuildingException, MavenEmbedderException
      Throws:
      org.apache.maven.project.ProjectBuildingException
      MavenEmbedderException
    • buildProjects

      public List<org.apache.maven.project.ProjectBuildingResult> buildProjects(File mavenProject, boolean recursive) throws org.apache.maven.project.ProjectBuildingException, MavenEmbedderException
      Throws:
      org.apache.maven.project.ProjectBuildingException
      MavenEmbedderException
    • getMavenSession

      public org.apache.maven.execution.MavenSession getMavenSession()
    • getMavenExecutionRequest

      public org.apache.maven.execution.MavenExecutionRequest getMavenExecutionRequest()
    • dispose

      public void dispose()
    • execute

      public org.apache.maven.execution.MavenExecutionResult execute(MavenRequest mavenRequest) throws MavenEmbedderException
      Throws:
      MavenEmbedderException