org.apache.maven.execution
Class MavenSession
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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.