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:
Session
,InternalMavenSession
,InternalSession
-
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) 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, createArtifactCoordinate, createArtifactCoordinate, createArtifactCoordinate, createArtifactCoordinate, createDependencyCoordinate, createDependencyCoordinate, createLocalRepository, createRemoteRepository, createRemoteRepository, deployArtifact, flattenDependencies, 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, resolveArtifacts, resolveArtifacts, resolveArtifacts, resolveDependencies, resolveDependencies, resolveDependencies, resolveDependencies, resolveDependencies, resolveVersion, 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, getDependency, getNode, getNode, getRemoteRepository, getRepositorySystem, getSession, toArtifact, toArtifact, toArtifacts, toDependencies, toDependency, toRepositories, toRepository, toRepository
Methods inherited from interface org.apache.maven.api.Session
collectDependencies, collectDependencies, collectDependencies, createArtifact, createArtifact, createArtifactCoordinate, createArtifactCoordinate, createArtifactCoordinate, createArtifactCoordinate, createDependencyCoordinate, createDependencyCoordinate, createLocalRepository, 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, resolveArtifacts, resolveArtifacts, resolveArtifacts, resolveDependencies, resolveDependencies, resolveDependencies, resolveDependencies, resolveDependencies, resolveVersion, 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
- 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 interfaceSession
-
getSystemProperties
- Specified by:
getSystemProperties
in interfaceSession
-
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 interfaceSession
-
getRootDirectory
- Specified by:
getRootDirectory
in interfaceSession
-
getTopDirectory
- Specified by:
getTopDirectory
in interfaceSession
-
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
-