org.apache.maven.execution
Class MavenSession

java.lang.Object
  extended by org.apache.maven.execution.MavenSession

public class MavenSession
extends Object

Version:
$Id: MavenSession.java 793745 2009-07-13 23:24:10Z jdcasey $
Author:
Jason van Zyl

Constructor Summary
MavenSession(org.codehaus.plexus.PlexusContainer container, Settings settings, ArtifactRepository localRepository, EventDispatcher eventDispatcher, ReactorManager reactorManager, List goals, String executionRootDir, Properties executionProperties, Date startTime)
           
MavenSession(org.codehaus.plexus.PlexusContainer container, Settings settings, ArtifactRepository localRepository, EventDispatcher eventDispatcher, ReactorManager reactorManager, List goals, String executionRootDir, Properties executionProperties, Properties userProperties, Date startTime)
           
 
Method Summary
 org.codehaus.plexus.PlexusContainer getContainer()
           
 MavenProject getCurrentProject()
          Return the current project for use in a mojo execution.
 EventDispatcher getEventDispatcher()
           
 Properties getExecutionProperties()
           
 String getExecutionRootDirectory()
           
 List getGoals()
           
 ArtifactRepository getLocalRepository()
           
 Map getPluginContext(PluginDescriptor pluginDescriptor, MavenProject project)
           
 ProjectBuilderConfiguration getProjectBuilderConfiguration()
          NOTE: This varies from DefaultMavenExecutionRequest.getProjectBuilderConfiguration() in that it doesn't supply a global profile manager.
 Settings getSettings()
           
 List<MavenProject> getSortedProjects()
           
 Date getStartTime()
           
 Properties getUserProperties()
           
 boolean isUsingPOMsFromFilesystem()
           
 Object lookup(String role)
           
 Object lookup(String role, String roleHint)
           
 List lookupList(String role)
           
 Map lookupMap(String role)
           
 void setCurrentProject(MavenProject currentProject)
           
 void setUserProperties(Properties userProperties)
           
 void setUsingPOMsFromFilesystem(boolean usingPOMsFromFilesystem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenSession

public MavenSession(org.codehaus.plexus.PlexusContainer container,
                    Settings settings,
                    ArtifactRepository localRepository,
                    EventDispatcher eventDispatcher,
                    ReactorManager reactorManager,
                    List goals,
                    String executionRootDir,
                    Properties executionProperties,
                    Date startTime)

MavenSession

public MavenSession(org.codehaus.plexus.PlexusContainer container,
                    Settings settings,
                    ArtifactRepository localRepository,
                    EventDispatcher eventDispatcher,
                    ReactorManager reactorManager,
                    List goals,
                    String executionRootDir,
                    Properties executionProperties,
                    Properties userProperties,
                    Date startTime)
Method Detail

getPluginContext

public Map getPluginContext(PluginDescriptor pluginDescriptor,
                            MavenProject project)

getContainer

public org.codehaus.plexus.PlexusContainer getContainer()

getLocalRepository

public ArtifactRepository getLocalRepository()

getGoals

public List getGoals()

getExecutionProperties

public Properties getExecutionProperties()

lookup

public Object lookup(String role)
              throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException

lookup

public Object lookup(String role,
                     String roleHint)
              throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException

lookupList

public List lookupList(String role)
                throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException

lookupMap

public Map lookupMap(String role)
              throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException

getEventDispatcher

public EventDispatcher getEventDispatcher()

getSettings

public Settings getSettings()

getSortedProjects

public List<MavenProject> getSortedProjects()

getExecutionRootDirectory

public String getExecutionRootDirectory()

setUsingPOMsFromFilesystem

public void setUsingPOMsFromFilesystem(boolean usingPOMsFromFilesystem)

isUsingPOMsFromFilesystem

public boolean isUsingPOMsFromFilesystem()

getStartTime

public Date getStartTime()

setCurrentProject

public void setCurrentProject(MavenProject currentProject)

getCurrentProject

public MavenProject getCurrentProject()
Return the current project for use in a mojo execution.


getUserProperties

public Properties getUserProperties()

setUserProperties

public void setUserProperties(Properties userProperties)

getProjectBuilderConfiguration

public ProjectBuilderConfiguration getProjectBuilderConfiguration()
NOTE: This varies from DefaultMavenExecutionRequest.getProjectBuilderConfiguration() in that it doesn't supply a global profile manager.



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