org.apache.maven.execution
Class MavenSession

java.lang.Object
  extended by org.apache.maven.execution.MavenSession
All Implemented Interfaces:
Cloneable

public class MavenSession
extends Object
implements Cloneable

Version:
$Id: MavenSession.java 988749 2010-08-24 22:46:07Z bentmann $
Author:
Jason van Zyl

Constructor Summary
MavenSession(PlexusContainer container, MavenExecutionRequest request, MavenExecutionResult result, List<MavenProject> projects)
          Deprecated. 
MavenSession(PlexusContainer container, MavenExecutionRequest request, MavenExecutionResult result, MavenProject project)
          Deprecated. 
MavenSession(PlexusContainer container, org.sonatype.aether.RepositorySystemSession repositorySession, MavenExecutionRequest request, MavenExecutionResult result)
           
MavenSession(PlexusContainer container, Settings settings, ArtifactRepository localRepository, EventDispatcher eventDispatcher, ReactorManager unused, List<String> goals, String executionRootDir, Properties executionProperties, Date startTime)
          Deprecated. 
MavenSession(PlexusContainer container, Settings settings, ArtifactRepository localRepository, EventDispatcher eventDispatcher, ReactorManager unused, List<String> goals, String executionRootDir, Properties executionProperties, Properties userProperties, Date startTime)
          Deprecated. 
 
Method Summary
 MavenSession clone()
           
 PlexusContainer getContainer()
          Deprecated. 
 MavenProject getCurrentProject()
           
 EventDispatcher getEventDispatcher()
          Deprecated. 
 Properties getExecutionProperties()
          Deprecated. Use either getUserProperties() or getSystemProperties().
 String getExecutionRootDirectory()
           
 List<String> getGoals()
           
 ArtifactRepository getLocalRepository()
           
 Map<String,Object> getPluginContext(PluginDescriptor plugin, MavenProject project)
           
 List<String> getPluginGroups()
           
 ProjectBuildingRequest getProjectBuildingRequest()
           
 ProjectDependencyGraph getProjectDependencyGraph()
           
 List<MavenProject> getProjects()
           
 String getReactorFailureBehavior()
           
 RepositoryCache getRepositoryCache()
          Deprecated. 
 org.sonatype.aether.RepositorySystemSession getRepositorySession()
           
 MavenExecutionRequest getRequest()
           
 MavenExecutionResult getResult()
           
 Settings getSettings()
           
 List<MavenProject> getSortedProjects()
          Deprecated. 
 Date getStartTime()
           
 Properties getSystemProperties()
          Gets the system properties to use for interpolation and profile activation.
 MavenProject getTopLevelProject()
           
 Properties getUserProperties()
          Gets the user properties to use for interpolation and profile activation.
 boolean isOffline()
           
 boolean isParallel()
           
 boolean isUsingPOMsFromFilesystem()
           
 Object lookup(String role)
          Deprecated. 
 Object lookup(String role, String roleHint)
          Deprecated. 
 List<Object> lookupList(String role)
          Deprecated. 
 Map<String,Object> lookupMap(String role)
          Deprecated. 
 void setCurrentProject(MavenProject currentProject)
           
 void setParallel(boolean parallel)
           
 void setProjectDependencyGraph(ProjectDependencyGraph projectDependencyGraph)
           
 void setProjects(List<MavenProject> projects)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenSession

@Deprecated
public MavenSession(PlexusContainer container,
                               MavenExecutionRequest request,
                               MavenExecutionResult result,
                               MavenProject project)
Deprecated. 


MavenSession

@Deprecated
public MavenSession(PlexusContainer container,
                               Settings settings,
                               ArtifactRepository localRepository,
                               EventDispatcher eventDispatcher,
                               ReactorManager unused,
                               List<String> goals,
                               String executionRootDir,
                               Properties executionProperties,
                               Date startTime)
Deprecated. 


MavenSession

@Deprecated
public MavenSession(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(PlexusContainer container,
                               MavenExecutionRequest request,
                               MavenExecutionResult result,
                               List<MavenProject> projects)
Deprecated. 


MavenSession

public MavenSession(PlexusContainer container,
                    org.sonatype.aether.RepositorySystemSession repositorySession,
                    MavenExecutionRequest request,
                    MavenExecutionResult result)
Method Detail

setProjects

public void setProjects(List<MavenProject> projects)

getContainer

@Deprecated
public PlexusContainer getContainer()
Deprecated. 


lookup

@Deprecated
public Object lookup(String role)
              throws ComponentLookupException
Deprecated. 

Throws:
ComponentLookupException

lookup

@Deprecated
public Object lookup(String role,
                                String roleHint)
              throws ComponentLookupException
Deprecated. 

Throws:
ComponentLookupException

lookupList

@Deprecated
public List<Object> lookupList(String role)
                        throws ComponentLookupException
Deprecated. 

Throws:
ComponentLookupException

lookupMap

@Deprecated
public Map<String,Object> lookupMap(String role)
                             throws ComponentLookupException
Deprecated. 

Throws:
ComponentLookupException

getRepositoryCache

@Deprecated
public RepositoryCache getRepositoryCache()
Deprecated. 


getLocalRepository

public ArtifactRepository getLocalRepository()

getGoals

public List<String> getGoals()

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 like System.getProperties() and environment variables.

Returns:
The system properties, never null.

getExecutionProperties

@Deprecated
public Properties getExecutionProperties()
Deprecated. Use either getUserProperties() or getSystemProperties().


getSettings

public Settings getSettings()

getProjects

public List<MavenProject> getProjects()

getSortedProjects

@Deprecated
public List<MavenProject> getSortedProjects()
Deprecated. 


getExecutionRootDirectory

public String getExecutionRootDirectory()

isUsingPOMsFromFilesystem

public boolean isUsingPOMsFromFilesystem()

getRequest

public MavenExecutionRequest getRequest()

setCurrentProject

public void setCurrentProject(MavenProject currentProject)

getCurrentProject

public MavenProject getCurrentProject()

getProjectBuildingRequest

public ProjectBuildingRequest getProjectBuildingRequest()

getPluginGroups

public List<String> getPluginGroups()

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()
Overrides:
clone in class Object

getEventDispatcher

@Deprecated
public EventDispatcher getEventDispatcher()
Deprecated. 


getStartTime

public Date getStartTime()

isParallel

public boolean isParallel()

setParallel

public void setParallel(boolean parallel)

getRepositorySession

public org.sonatype.aether.RepositorySystemSession getRepositorySession()


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