Class ProtoSession

java.lang.Object
org.apache.maven.internal.impl.AbstractSession
org.apache.maven.cling.invoker.mvn.ProtoSession
All Implemented Interfaces:
org.apache.maven.api.Session, org.apache.maven.internal.impl.InternalSession

public class ProtoSession extends org.apache.maven.internal.impl.AbstractSession
  • Field Summary

    Fields inherited from class org.apache.maven.internal.impl.AbstractSession

    lookup, repositories, repositorySystem, session
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ProtoSession(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.RepositorySystem repositorySystem, List<org.apache.maven.api.RemoteRepository> repositories, List<org.eclipse.aether.repository.RemoteRepository> resolverRepositories, org.apache.maven.api.services.Lookup lookup, org.apache.maven.cling.invoker.mvn.ProtoSession.Context context)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.maven.api.Session
     
    static org.apache.maven.api.Session
    create(Map<String,String> userProperties, Map<String,String> systemProperties)
    Create a new session.
    int
     
    getEffectiveProperties(org.apache.maven.api.Project project)
     
    org.apache.maven.api.Version
     
    getPluginContext(org.apache.maven.api.Project project)
     
    List<org.apache.maven.api.Project>
     
     
    org.apache.maven.api.settings.Settings
     
     
     
     
     
    protected org.apache.maven.api.Session
    newSession(org.eclipse.aether.RepositorySystemSession session, List<org.apache.maven.api.RemoteRepository> repositories)
     

    Methods inherited from class org.apache.maven.internal.impl.AbstractSession

    collectDependencies, collectDependencies, collectDependencies, createArtifact, createArtifact, createArtifactCoordinates, createArtifactCoordinates, createArtifactCoordinates, createArtifactCoordinates, createDependencyCoordinates, createDependencyCoordinates, createLocalRepository, createProducedArtifact, createProducedArtifact, createRemoteRepository, createRemoteRepository, deployArtifact, flattenDependencies, getArtifact, getArtifact, getArtifactPath, getData, getDependency, getListeners, getLocalRepository, getNode, getNode, getPathForLocalArtifact, getPathForRemoteArtifact, getRemoteRepositories, getRemoteRepository, getRepositorySystem, getService, getSession, installArtifacts, installArtifacts, isVersionSnapshot, parseVersion, parseVersionConstraint, parseVersionRange, registerListener, requireDependencyScope, requireLanguage, requirePackaging, requirePathScope, requireProjectScope, requireType, resolveArtifact, resolveArtifact, resolveArtifact, resolveArtifact, resolveArtifacts, resolveArtifacts, resolveArtifacts, resolveArtifacts, resolveDependencies, resolveDependencies, resolveDependencies, resolveDependencies, resolveDependencies, resolveVersion, resolveVersionRange, resolveVersionRange, setArtifactPath, toArtifact, toArtifact, toArtifacts, toDependencies, toDependency, toRepositories, toRepository, toRepository, unregisterListener, withLocalRepository, withRemoteRepositories

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProtoSession

      protected ProtoSession(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.RepositorySystem repositorySystem, List<org.apache.maven.api.RemoteRepository> repositories, List<org.eclipse.aether.repository.RemoteRepository> resolverRepositories, org.apache.maven.api.services.Lookup lookup, org.apache.maven.cling.invoker.mvn.ProtoSession.Context context)
  • Method Details

    • create

      public static org.apache.maven.api.Session create()
    • create

      public static org.apache.maven.api.Session create(Map<String,String> userProperties, Map<String,String> systemProperties)
      Create a new session.
    • newSession

      protected org.apache.maven.api.Session newSession(org.eclipse.aether.RepositorySystemSession session, List<org.apache.maven.api.RemoteRepository> repositories)
      Specified by:
      newSession in class org.apache.maven.internal.impl.AbstractSession
    • getSettings

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

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

      public Map<String,String> getSystemProperties()
    • getEffectiveProperties

      public Map<String,String> getEffectiveProperties(org.apache.maven.api.Project project)
    • getMavenVersion

      public org.apache.maven.api.Version getMavenVersion()
    • getDegreeOfConcurrency

      public int getDegreeOfConcurrency()
    • getStartTime

      public Instant getStartTime()
    • getTopDirectory

      public Path getTopDirectory()
    • getRootDirectory

      public Path getRootDirectory()
    • getProjects

      public List<org.apache.maven.api.Project> getProjects()
    • getPluginContext

      public Map<String,Object> getPluginContext(org.apache.maven.api.Project project)