Class MavenSession

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

public class MavenSession extends Object implements Cloneable
A Maven execution session.
Author:
Jason van Zyl
  • Constructor Details Link icon

  • Method Details Link icon

    • setProjects Link icon

      public void setProjects(List<MavenProject> projects)
    • getLocalRepository Link icon

      public ArtifactRepository getLocalRepository()
    • getGoals Link icon

      public List<String> getGoals()
    • getUserProperties Link icon

      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 Link icon

      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.
    • getSettings Link icon

      public Settings getSettings()
    • getProjects Link icon

      public List<MavenProject> getProjects()
    • getExecutionRootDirectory Link icon

      public String getExecutionRootDirectory()
    • getRequest Link icon

      public MavenExecutionRequest getRequest()
    • setCurrentProject Link icon

      public void setCurrentProject(MavenProject currentProject)
    • getCurrentProject Link icon

      public MavenProject getCurrentProject()
    • getProjectBuildingRequest Link icon

      public ProjectBuildingRequest getProjectBuildingRequest()
    • getPluginGroups Link icon

      public List<String> getPluginGroups()
    • isOffline Link icon

      public boolean isOffline()
    • getTopLevelProject Link icon

      public MavenProject getTopLevelProject()
    • getResult Link icon

      public MavenExecutionResult getResult()
    • getPluginContext Link icon

      public Map<String,Object> getPluginContext(PluginDescriptor plugin, MavenProject project)
    • getProjectDependencyGraph Link icon

      public ProjectDependencyGraph getProjectDependencyGraph()
    • setProjectDependencyGraph Link icon

      public void setProjectDependencyGraph(ProjectDependencyGraph projectDependencyGraph)
    • getReactorFailureBehavior Link icon

      public String getReactorFailureBehavior()
    • clone Link icon

      public MavenSession clone()
      Overrides:
      clone in class Object
    • getStartTime Link icon

      public Date getStartTime()
    • isParallel Link icon

      public boolean isParallel()
    • setParallel Link icon

      public void setParallel(boolean parallel)
    • getRepositorySession Link icon

      public org.eclipse.aether.RepositorySystemSession getRepositorySession()
    • setProjectMap Link icon

      public void setProjectMap(Map<String,MavenProject> projectMap)
    • getAllProjects Link icon

      public List<MavenProject> getAllProjects()
      This is a provisional method and may be removed
    • setAllProjects Link icon

      public void setAllProjects(List<MavenProject> allProjects)
      This is a provisional method and may be removed
    • getProjectMap Link icon

      @Deprecated public Map<String,MavenProject> getProjectMap()
      Deprecated.
    • getSortedProjects Link icon

      @Deprecated public List<MavenProject> getSortedProjects()
      Deprecated.
    • getRepositoryCache Link icon

      @Deprecated public RepositoryCache getRepositoryCache()
      Deprecated.
    • getEventDispatcher Link icon

      @Deprecated public EventDispatcher getEventDispatcher()
      Deprecated.
    • isUsingPOMsFromFilesystem Link icon

      @Deprecated public boolean isUsingPOMsFromFilesystem()
      Deprecated.
    • getExecutionProperties Link icon

      @Deprecated public Properties getExecutionProperties()
      Deprecated.
    • getContainer Link icon

      @Deprecated public org.codehaus.plexus.PlexusContainer getContainer()
      Deprecated.
    • lookup Link icon

      @Deprecated public Object lookup(String role) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
      Deprecated.
      Throws:
      org.codehaus.plexus.component.repository.exception.ComponentLookupException
    • lookup Link icon

      @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 Link icon

      @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 Link icon

      @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