Class DefaultSession

java.lang.Object
org.apache.maven.internal.impl.AbstractSession
org.apache.maven.internal.impl.DefaultSession
All Implemented Interfaces:
Session

public class DefaultSession extends AbstractSession
  • Constructor Details

  • Method Details

    • getMavenSession

      public MavenSession getMavenSession()
    • getLocalRepository

      @Nonnull public LocalRepository getLocalRepository()
    • getRemoteRepositories

      @Nonnull public List<RemoteRepository> getRemoteRepositories()
    • getSettings

      @Nonnull public org.apache.maven.api.settings.Settings getSettings()
    • getUserProperties

      @Nonnull public Map<String,String> getUserProperties()
    • getSystemProperties

      @Nonnull public Map<String,String> getSystemProperties()
    • getMavenVersion

      @Nonnull public String getMavenVersion()
    • getDegreeOfConcurrency

      public int getDegreeOfConcurrency()
    • getStartTime

      @Nonnull public Instant getStartTime()
    • getMultiModuleProjectDirectory

      @Nonnull public Path getMultiModuleProjectDirectory()
    • getExecutionRootDirectory

      @Nonnull public Path getExecutionRootDirectory()
    • getProjects

      @Nonnull public List<Project> getProjects()
    • getPluginContext

      @Nonnull public Map<String,Object> getPluginContext(Project project)
    • getData

      @Nonnull public SessionData getData()
    • withLocalRepository

      @Nonnull public Session withLocalRepository(@Nonnull LocalRepository localRepository)
    • withRemoteRepositories

      @Nonnull public Session withRemoteRepositories(@Nonnull List<RemoteRepository> repositories)
    • getService

      @Nonnull public <T extends Service> T getService(Class<T> clazz) throws NoSuchElementException
      Throws:
      NoSuchElementException
    • getSession

      @Nonnull public org.eclipse.aether.RepositorySystemSession getSession()
    • getRepositorySystem

      @Nonnull public org.eclipse.aether.RepositorySystem getRepositorySystem()
    • toArtifactRepository

      public ArtifactRepository toArtifactRepository(RemoteRepository repository)
      Specified by:
      toArtifactRepository in class AbstractSession
    • toDependency

      public org.eclipse.aether.graph.Dependency toDependency(DependencyCoordinate dependency)
      Specified by:
      toDependency in class AbstractSession