org.apache.maven.mae.boot.services
Interface MAEServiceManager

All Known Implementing Classes:
DefaultMAEServiceManager

public interface MAEServiceManager

Service manager used as an aid in constructing complex objects correctly for use in Maven, such as RepositorySystemSession instances, which are used to resolve artifacts, or ProjectBuildingRequest instances, used to build maven projects from their corresponding POM files or artifact coordinates.

Author:
John Casey

Method Summary
 org.sonatype.aether.RepositorySystem aetherRepositorySystem()
          Retrieve the aether RepositorySystem component.
 org.sonatype.aether.RepositorySystemSession createAetherRepositorySystemSession()
          Create a new RepositorySystemSession for resolving artifacts, using default configurations.
 org.sonatype.aether.RepositorySystemSession createAetherRepositorySystemSession(org.apache.maven.execution.MavenExecutionRequest request)
          Create a new RepositorySystemSession for resolving artifacts, based on the configuration of a MavenExecutionRequest.
 org.apache.maven.project.DefaultProjectBuildingRequest createProjectBuildingRequest()
          Create a new ProjectBuildingRequest to be used in building project instances from POM files or artifact coordinates.
 org.apache.maven.project.DefaultProjectBuildingRequest createProjectBuildingRequest(MAEExecutionRequest executionRequest)
          Create a new ProjectBuildingRequest to be used in building project instances from POM files or artifact coordinates.
 org.apache.maven.project.DefaultProjectBuildingRequest createProjectBuildingRequest(org.apache.maven.execution.MavenExecutionRequest executionRequest)
          Create a new ProjectBuildingRequest to be used in building project instances from POM files or artifact coordinates.
 org.apache.maven.project.DefaultProjectBuildingRequest createProjectBuildingRequest(org.apache.maven.project.ProjectBuildingRequest templateProjectBuildingRequest)
          Create a new ProjectBuildingRequest to be used in building project instances from POM files or artifact coordinates.
 org.apache.maven.artifact.repository.ArtifactRepository defaultLocalRepository()
          Retrieve an ArtifactRepository instance configured for the default location of the Maven local repository.
 org.apache.maven.repository.RepositorySystem mavenRepositorySystem()
          Retrieve the Maven RepositorySystem component.
 org.apache.maven.project.ProjectBuilder projectBuilder()
          Retrieve the Maven ProjectBuilder component.
<T> T
service(Class<T> type)
          Retrieve a component from the Maven component environment, based on its class.
<T> T
service(Class<T> type, String hint)
          Retrieve a component from the Maven component environment, based on its class and an implementation hint.
 

Method Detail

projectBuilder

org.apache.maven.project.ProjectBuilder projectBuilder()
                                                       throws MAEEmbeddingException
Retrieve the Maven ProjectBuilder component.

Throws:
MAEEmbeddingException

createProjectBuildingRequest

org.apache.maven.project.DefaultProjectBuildingRequest createProjectBuildingRequest()
                                                                                    throws MAEEmbeddingException
Create a new ProjectBuildingRequest to be used in building project instances from POM files or artifact coordinates.

Throws:
MAEEmbeddingException

createProjectBuildingRequest

org.apache.maven.project.DefaultProjectBuildingRequest createProjectBuildingRequest(org.apache.maven.project.ProjectBuildingRequest templateProjectBuildingRequest)
                                                                                    throws MAEEmbeddingException
Create a new ProjectBuildingRequest to be used in building project instances from POM files or artifact coordinates.

Throws:
MAEEmbeddingException

createProjectBuildingRequest

org.apache.maven.project.DefaultProjectBuildingRequest createProjectBuildingRequest(MAEExecutionRequest executionRequest)
                                                                                    throws MAEEmbeddingException
Create a new ProjectBuildingRequest to be used in building project instances from POM files or artifact coordinates.

Throws:
MAEEmbeddingException

createProjectBuildingRequest

org.apache.maven.project.DefaultProjectBuildingRequest createProjectBuildingRequest(org.apache.maven.execution.MavenExecutionRequest executionRequest)
                                                                                    throws MAEEmbeddingException
Create a new ProjectBuildingRequest to be used in building project instances from POM files or artifact coordinates.

Throws:
MAEEmbeddingException

mavenRepositorySystem

org.apache.maven.repository.RepositorySystem mavenRepositorySystem()
                                                                   throws MAEEmbeddingException
Retrieve the Maven RepositorySystem component.

Throws:
MAEEmbeddingException

aetherRepositorySystem

org.sonatype.aether.RepositorySystem aetherRepositorySystem()
                                                            throws MAEEmbeddingException
Retrieve the aether RepositorySystem component.

Throws:
MAEEmbeddingException

createAetherRepositorySystemSession

org.sonatype.aether.RepositorySystemSession createAetherRepositorySystemSession()
                                                                                throws MAEEmbeddingException
Create a new RepositorySystemSession for resolving artifacts, using default configurations.

Throws:
MAEEmbeddingException

createAetherRepositorySystemSession

org.sonatype.aether.RepositorySystemSession createAetherRepositorySystemSession(org.apache.maven.execution.MavenExecutionRequest request)
                                                                                throws MAEEmbeddingException
Create a new RepositorySystemSession for resolving artifacts, based on the configuration of a MavenExecutionRequest.

Throws:
MAEEmbeddingException

service

<T> T service(Class<T> type)
          throws MAEEmbeddingException
Retrieve a component from the Maven component environment, based on its class.
NOTE: This method requires that some MAELibrary present in the current environment has granted permission to lookup the component in question.

Throws:
MAEEmbeddingException

service

<T> T service(Class<T> type,
              String hint)
          throws MAEEmbeddingException
Retrieve a component from the Maven component environment, based on its class and an implementation hint.
NOTE: This method requires that some MAELibrary present in the current environment has granted permission to lookup the component in question.

Throws:
MAEEmbeddingException

defaultLocalRepository

org.apache.maven.artifact.repository.ArtifactRepository defaultLocalRepository()
                                                                               throws MAEEmbeddingException
Retrieve an ArtifactRepository instance configured for the default location of the Maven local repository.

Throws:
MAEEmbeddingException


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.