Class MavenEmbedder


  • public class MavenEmbedder
    extends java.lang.Object
    • Field Detail

      • DEFAULT_GLOBAL_SETTINGS_FILE

        public static final java.io.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 java.lang.String getLocalRepositoryPath()
      • readProject

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

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

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

        public java.util.List<org.apache.maven.project.ProjectBuildingResult> buildProjects​(java.io.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()