Package org.apache.maven.internal.impl
Class DefaultSession
java.lang.Object
org.apache.maven.internal.impl.AbstractSession
org.apache.maven.internal.impl.DefaultSession
- All Implemented Interfaces:
ProtoSession
,Session
,InternalMavenSession
,InternalSession
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.maven.api.ProtoSession
ProtoSession.Builder
-
Field Summary
Fields inherited from class org.apache.maven.internal.impl.AbstractSession
lookup, repositories, repositorySystem, session
-
Constructor Summary
ConstructorDescriptionDefaultSession
(MavenSession session, org.eclipse.aether.RepositorySystem repositorySystem, List<RemoteRepository> remoteRepositories, MavenRepositorySystem mavenRepositorySystem, Lookup lookup, RuntimeInformation runtimeInformation) -
Method Summary
Modifier and TypeMethodDescriptionint
getEffectiveProperties
(Project project) getPluginContext
(Project project) getProject
(MavenProject project) May return null if the input project is null or is not part of the reactor.getProjects
(List<MavenProject> projects) org.apache.maven.api.settings.Settings
protected Session
newSession
(MavenSession mavenSession, List<RemoteRepository> repositories) protected Session
newSession
(org.eclipse.aether.RepositorySystemSession repoSession, List<RemoteRepository> repositories) toArtifactRepositories
(List<RemoteRepository> repositories) toArtifactRepository
(RemoteRepository repository) 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
Methods inherited from interface org.apache.maven.internal.impl.InternalSession
getArtifact, getArtifact, getDependency, getNode, getNode, getRemoteRepository, getRepositorySystem, getSession, toArtifact, toArtifact, toArtifacts, toDependencies, toDependency, toRepositories, toRepository, toRepository
Methods inherited from interface org.apache.maven.api.ProtoSession
toBuilder
Methods inherited from interface org.apache.maven.api.Session
collectDependencies, collectDependencies, collectDependencies, createArtifact, createArtifact, createArtifactCoordinates, createArtifactCoordinates, createArtifactCoordinates, createArtifactCoordinates, createDependencyCoordinates, createDependencyCoordinates, createLocalRepository, createProducedArtifact, createProducedArtifact, createRemoteRepository, createRemoteRepository, deployArtifact, flattenDependencies, getArtifactPath, getData, getListeners, getLocalRepository, getPathForLocalArtifact, getPathForRemoteArtifact, getRemoteRepositories, getService, 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, unregisterListener, withLocalRepository, withRemoteRepositories
-
Constructor Details
-
DefaultSession
public DefaultSession(@Nonnull MavenSession session, @Nonnull org.eclipse.aether.RepositorySystem repositorySystem, @Nullable List<RemoteRepository> remoteRepositories, @Nonnull MavenRepositorySystem mavenRepositorySystem, @Nonnull Lookup lookup, @Nonnull RuntimeInformation runtimeInformation)
-
-
Method Details
-
getMavenSession
- Specified by:
getMavenSession
in interfaceInternalMavenSession
-
getProjects
- Specified by:
getProjects
in interfaceInternalMavenSession
-
getProject
Description copied from interface:InternalMavenSession
May return null if the input project is null or is not part of the reactor.- Specified by:
getProject
in interfaceInternalMavenSession
-
toArtifactRepositories
- Specified by:
toArtifactRepositories
in interfaceInternalMavenSession
-
getSettings
@Nonnull public org.apache.maven.api.settings.Settings getSettings()- Specified by:
getSettings
in interfaceSession
-
getUserProperties
- Specified by:
getUserProperties
in interfaceProtoSession
-
getSystemProperties
- Specified by:
getSystemProperties
in interfaceProtoSession
-
getEffectiveProperties
- Specified by:
getEffectiveProperties
in interfaceSession
-
getMavenVersion
- Specified by:
getMavenVersion
in interfaceSession
-
getDegreeOfConcurrency
public int getDegreeOfConcurrency()- Specified by:
getDegreeOfConcurrency
in interfaceSession
-
getStartTime
- Specified by:
getStartTime
in interfaceProtoSession
-
getRootDirectory
- Specified by:
getRootDirectory
in interfaceProtoSession
-
getTopDirectory
- Specified by:
getTopDirectory
in interfaceProtoSession
-
getProjects
- Specified by:
getProjects
in interfaceSession
-
getPluginContext
- Specified by:
getPluginContext
in interfaceSession
-
newSession
protected Session newSession(org.eclipse.aether.RepositorySystemSession repoSession, List<RemoteRepository> repositories) - Specified by:
newSession
in classAbstractSession
-
newSession
-
toArtifactRepository
- Specified by:
toArtifactRepository
in interfaceInternalMavenSession
-