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
ModifierConstructorDescriptionprotected
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 TypeMethodDescriptionstatic org.apache.maven.api.Session
create()
static org.apache.maven.api.Session
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
-
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 classorg.apache.maven.internal.impl.AbstractSession
-
getSettings
public org.apache.maven.api.settings.Settings getSettings() -
getUserProperties
-
getSystemProperties
-
getEffectiveProperties
-
getMavenVersion
public org.apache.maven.api.Version getMavenVersion() -
getDegreeOfConcurrency
public int getDegreeOfConcurrency() -
getStartTime
-
getTopDirectory
-
getRootDirectory
-
getProjects
-
getPluginContext
-