Package org.apache.maven.execution
Class MavenSession
java.lang.Object
org.apache.maven.execution.MavenSession
- All Implemented Interfaces:
- Cloneable
A Maven execution session.
- Author:
- Jason van Zyl
- 
Constructor SummaryConstructorsConstructorDescriptionMavenSession(org.codehaus.plexus.PlexusContainer container, MavenExecutionRequest request, MavenExecutionResult result, List<MavenProject> projects) Deprecated.MavenSession(org.codehaus.plexus.PlexusContainer container, MavenExecutionRequest request, MavenExecutionResult result, MavenProject project) Deprecated.MavenSession(org.codehaus.plexus.PlexusContainer container, Settings settings, ArtifactRepository localRepository, EventDispatcher eventDispatcher, ReactorManager unused, List<String> goals, String executionRootDir, Properties executionProperties, Date startTime) Deprecated.MavenSession(org.codehaus.plexus.PlexusContainer container, Settings settings, ArtifactRepository localRepository, EventDispatcher eventDispatcher, ReactorManager unused, List<String> goals, String executionRootDir, Properties executionProperties, Properties userProperties, Date startTime) Deprecated.MavenSession(org.codehaus.plexus.PlexusContainer container, org.eclipse.aether.RepositorySystemSession repositorySession, MavenExecutionRequest request, MavenExecutionResult result) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionclone()This is a provisional method and may be removedorg.codehaus.plexus.PlexusContainerDeprecated.Deprecated.Deprecated.getGoals()getPluginContext(PluginDescriptor plugin, MavenProject project) Deprecated.Deprecated.org.eclipse.aether.RepositorySystemSessionDeprecated.Gets the system properties to use for interpolation and profile activation.Gets the user properties to use for interpolation and profile activation.booleanbooleanbooleanDeprecated.Deprecated.Deprecated.lookupList(String role) Deprecated.Deprecated.voidsetAllProjects(List<MavenProject> allProjects) This is a provisional method and may be removedvoidsetCurrentProject(MavenProject currentProject) voidsetParallel(boolean parallel) voidsetProjectDependencyGraph(ProjectDependencyGraph projectDependencyGraph) voidsetProjectMap(Map<String, MavenProject> projectMap) voidsetProjects(List<MavenProject> projects) 
- 
Constructor Details- 
MavenSession@Deprecated public MavenSession(org.codehaus.plexus.PlexusContainer container, org.eclipse.aether.RepositorySystemSession repositorySession, MavenExecutionRequest request, MavenExecutionResult result) Deprecated.
- 
MavenSession@Deprecated public MavenSession(org.codehaus.plexus.PlexusContainer container, MavenExecutionRequest request, MavenExecutionResult result, MavenProject project) Deprecated.
- 
MavenSession@Deprecated public MavenSession(org.codehaus.plexus.PlexusContainer container, Settings settings, ArtifactRepository localRepository, EventDispatcher eventDispatcher, ReactorManager unused, List<String> goals, String executionRootDir, Properties executionProperties, Date startTime) Deprecated.
- 
MavenSession@Deprecated public MavenSession(org.codehaus.plexus.PlexusContainer container, Settings settings, ArtifactRepository localRepository, EventDispatcher eventDispatcher, ReactorManager unused, List<String> goals, String executionRootDir, Properties executionProperties, Properties userProperties, Date startTime) Deprecated.
- 
MavenSession@Deprecated public MavenSession(org.codehaus.plexus.PlexusContainer container, MavenExecutionRequest request, MavenExecutionResult result, List<MavenProject> projects) Deprecated.
 
- 
- 
Method Details- 
setProjects
- 
getLocalRepository
- 
getGoals
- 
getUserPropertiesGets the user properties to use for interpolation and profile activation. The user properties have been configured directly by the user on his discretion, e.g. via the-Dkey=valueparameter on the command line.- Returns:
- The user properties, never null.
 
- 
getSystemPropertiesGets the system properties to use for interpolation and profile activation. The system properties are collected from the runtime environment likeSystem.getProperties()and environment variables.- Returns:
- The system properties, never null.
 
- 
getSettings
- 
getProjects
- 
getExecutionRootDirectory
- 
getRequest
- 
setCurrentProject
- 
getCurrentProject
- 
getProjectBuildingRequest
- 
getPluginGroups
- 
isOfflinepublic boolean isOffline()
- 
getTopLevelProject
- 
getResult
- 
getPluginContext
- 
getProjectDependencyGraph
- 
setProjectDependencyGraph
- 
getReactorFailureBehavior
- 
clone
- 
getStartTime
- 
isParallelpublic boolean isParallel()
- 
setParallelpublic void setParallel(boolean parallel) 
- 
getRepositorySessionpublic org.eclipse.aether.RepositorySystemSession getRepositorySession()
- 
setProjectMap
- 
getAllProjectsThis is a provisional method and may be removed
- 
setAllProjectsThis is a provisional method and may be removed
- 
getProjectMapDeprecated.
- 
getSortedProjectsDeprecated.
- 
getRepositoryCacheDeprecated.
- 
getEventDispatcherDeprecated.
- 
isUsingPOMsFromFilesystemDeprecated.
- 
getExecutionPropertiesDeprecated.Use eithergetUserProperties()orgetSystemProperties().
- 
getContainerDeprecated.
- 
lookup@Deprecated public Object lookup(String role) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Deprecated.- Throws:
- org.codehaus.plexus.component.repository.exception.ComponentLookupException
 
- 
lookup@Deprecated public Object lookup(String role, String roleHint) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Deprecated.- Throws:
- org.codehaus.plexus.component.repository.exception.ComponentLookupException
 
- 
lookupList@Deprecated public List<Object> lookupList(String role) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Deprecated.- Throws:
- org.codehaus.plexus.component.repository.exception.ComponentLookupException
 
- 
lookupMap@Deprecated public Map<String,Object> lookupMap(String role) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException Deprecated.- Throws:
- org.codehaus.plexus.component.repository.exception.ComponentLookupException
 
 
- 
getUserProperties()orgetSystemProperties().