Class MavenEmbedder


  • public class MavenEmbedder
    extends Object
    • Field Detail

      • DEFAULT_GLOBAL_SETTINGS_FILE

        public static final File DEFAULT_GLOBAL_SETTINGS_FILE
    • Method Detail

      • 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
      • 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​(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()