Package org.apache.maven.execution
Class MavenSession
- java.lang.Object
-
- org.apache.maven.execution.MavenSession
-
-
Constructor Summary
Constructors Constructor Description MavenSession(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 Summary
-
-
-
Constructor Detail
-
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 Detail
-
setProjects
public void setProjects(List<MavenProject> projects)
-
getLocalRepository
public ArtifactRepository getLocalRepository()
-
getUserProperties
public Properties getUserProperties()
Gets 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=value
parameter on the command line.- Returns:
- The user properties, never
null
.
-
getSystemProperties
public Properties getSystemProperties()
Gets 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
public Settings getSettings()
-
getProjects
public List<MavenProject> getProjects()
-
getExecutionRootDirectory
public String getExecutionRootDirectory()
-
getRequest
public MavenExecutionRequest getRequest()
-
setCurrentProject
public void setCurrentProject(MavenProject currentProject)
-
getCurrentProject
public MavenProject getCurrentProject()
-
getProjectBuildingRequest
public ProjectBuildingRequest getProjectBuildingRequest()
-
isOffline
public boolean isOffline()
-
getTopLevelProject
public MavenProject getTopLevelProject()
-
getResult
public MavenExecutionResult getResult()
-
getPluginContext
public Map<String,Object> getPluginContext(PluginDescriptor plugin, MavenProject project)
-
getProjectDependencyGraph
public ProjectDependencyGraph getProjectDependencyGraph()
-
setProjectDependencyGraph
public void setProjectDependencyGraph(ProjectDependencyGraph projectDependencyGraph)
-
getReactorFailureBehavior
public String getReactorFailureBehavior()
-
clone
public MavenSession clone()
-
getStartTime
public Date getStartTime()
-
isParallel
public boolean isParallel()
-
setParallel
public void setParallel(boolean parallel)
-
getRepositorySession
public org.eclipse.aether.RepositorySystemSession getRepositorySession()
-
setProjectMap
public void setProjectMap(Map<String,MavenProject> projectMap)
-
getAllProjects
public List<MavenProject> getAllProjects()
This is a provisional method and may be removed
-
setAllProjects
public void setAllProjects(List<MavenProject> allProjects)
This is a provisional method and may be removed
-
getProjectMap
@Deprecated public Map<String,MavenProject> getProjectMap()
Deprecated.
-
getSortedProjects
@Deprecated public List<MavenProject> getSortedProjects()
Deprecated.
-
getRepositoryCache
@Deprecated public RepositoryCache getRepositoryCache()
Deprecated.
-
getEventDispatcher
@Deprecated public EventDispatcher getEventDispatcher()
Deprecated.
-
isUsingPOMsFromFilesystem
@Deprecated public boolean isUsingPOMsFromFilesystem()
Deprecated.
-
getExecutionProperties
@Deprecated public Properties getExecutionProperties()
Deprecated.Use eithergetUserProperties()
orgetSystemProperties()
.
-
getContainer
@Deprecated public org.codehaus.plexus.PlexusContainer getContainer()
Deprecated.
-
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
-
-