|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.execution.MavenSession
public class MavenSession
| Constructor Summary | |
|---|---|
MavenSession(org.codehaus.plexus.PlexusContainer container,
MavenExecutionRequest request,
EventDispatcher eventDispatcher,
ReactorManager reactorManager)
|
|
| Method Summary | ||
|---|---|---|
void |
addForkedProject(MavenProject project)
Push the existing currentProject onto the forked-project stack, and set the specified project as the new current project. |
|
void |
addReport(MojoDescriptor mojoDescriptor,
MavenReport report)
Add a newly-executed report ( MavenReport instance) to the reports collection, for
future reference. |
|
void |
clearReports()
Clear the reports for this project |
|
BuildPlan |
getBuildPlan(MavenProject project)
|
|
BuildPlan |
getBuildPlan(java.lang.String projectId)
|
|
java.util.Map |
getBuildPlans()
|
|
org.codehaus.plexus.PlexusContainer |
getContainer()
|
|
MavenProject |
getCurrentProject()
Return the current project for use in a mojo execution. |
|
EventDispatcher |
getEventDispatcher()
|
|
java.util.Properties |
getExecutionProperties()
|
|
java.lang.String |
getExecutionRootDirectory()
|
|
java.util.List |
getGoals()
|
|
ArtifactRepository |
getLocalRepository()
|
|
java.util.Map |
getPluginContext(PluginDescriptor pluginDescriptor,
MavenProject project)
|
|
java.util.List<java.lang.String> |
getPluginGroups()
|
|
ProjectBuilderConfiguration |
getProjectBuilderConfiguration()
|
|
MavenRealmManager |
getRealmManager()
|
|
java.util.Set |
getReportMojoDescriptors()
|
|
java.util.List |
getReports()
Retrieve the list of reports ( MavenReport instances) that have been executed against
this project, for use in another mojo's execution. |
|
MavenExecutionRequest |
getRequest()
|
|
Settings |
getSettings()
|
|
java.util.List |
getSortedProjects()
|
|
java.util.Date |
getStartTime()
|
|
boolean |
isOffline()
|
|
boolean |
isUsingPOMsFromFilesystem()
|
|
|
lookup(java.lang.Class<T> type)
|
|
|
lookup(java.lang.Class<T> type,
java.lang.String roleHint)
|
|
java.lang.Object |
lookup(java.lang.String role)
|
|
java.lang.Object |
lookup(java.lang.String role,
java.lang.String roleHint)
|
|
java.util.List |
lookupList(java.lang.String role)
|
|
java.util.Map |
lookupMap(java.lang.String role)
|
|
MavenProject |
removeForkedProject()
Peel off the last forked project from the stack, and restore it as the currentProject. |
|
void |
setBuildPlan(MavenProject project,
BuildPlan buildPlan)
|
|
void |
setCurrentProject(MavenProject currentProject)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MavenSession(org.codehaus.plexus.PlexusContainer container,
MavenExecutionRequest request,
EventDispatcher eventDispatcher,
ReactorManager reactorManager)
| Method Detail |
|---|
public MavenRealmManager getRealmManager()
public java.util.Map getPluginContext(PluginDescriptor pluginDescriptor,
MavenProject project)
public org.codehaus.plexus.PlexusContainer getContainer()
public ArtifactRepository getLocalRepository()
public java.util.List getGoals()
public java.util.Properties getExecutionProperties()
public java.lang.Object lookup(java.lang.String role)
throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
public java.lang.Object lookup(java.lang.String role,
java.lang.String roleHint)
throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
public <T> T lookup(java.lang.Class<T> type)
throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
public <T> T lookup(java.lang.Class<T> type,
java.lang.String roleHint)
throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
public java.util.List lookupList(java.lang.String role)
throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
org.codehaus.plexus.component.repository.exception.ComponentLookupException
public java.util.Map lookupMap(java.lang.String role)
throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
org.codehaus.plexus.component.repository.exception.ComponentLookupExceptionpublic EventDispatcher getEventDispatcher()
public Settings getSettings()
public java.util.List getSortedProjects()
public java.lang.String getExecutionRootDirectory()
public boolean isUsingPOMsFromFilesystem()
public java.util.Date getStartTime()
public MavenExecutionRequest getRequest()
public void addForkedProject(MavenProject project)
public MavenProject removeForkedProject()
public void setCurrentProject(MavenProject currentProject)
public MavenProject getCurrentProject()
public java.util.List getReports()
MavenReport instances) that have been executed against
this project, for use in another mojo's execution.
public void clearReports()
public void addReport(MojoDescriptor mojoDescriptor,
MavenReport report)
MavenReport instance) to the reports collection, for
future reference.
public java.util.Set getReportMojoDescriptors()
public BuildPlan getBuildPlan(java.lang.String projectId)
public BuildPlan getBuildPlan(MavenProject project)
public void setBuildPlan(MavenProject project,
BuildPlan buildPlan)
public java.util.Map getBuildPlans()
public ProjectBuilderConfiguration getProjectBuilderConfiguration()
public java.util.List<java.lang.String> getPluginGroups()
public boolean isOffline()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||