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
,InternalSession
-
Constructor Summary
ConstructorDescriptionDefaultSession
(MavenSession session, org.eclipse.aether.RepositorySystem repositorySystem, List<RemoteRepository> repositories, MavenRepositorySystem mavenRepositorySystem, Lookup lookup, RuntimeInformation runtimeInformation) -
Method Summary
Modifier and TypeMethodDescriptiongetData()
int
getPluginContext
(Project project) org.eclipse.aether.RepositorySystem
<T extends Service>
TgetService
(Class<T> clazz) org.eclipse.aether.RepositorySystemSession
org.apache.maven.api.settings.Settings
toArtifactRepository
(RemoteRepository repository) org.eclipse.aether.graph.Dependency
toDependency
(DependencyCoordinate dependency) withLocalRepository
(LocalRepository localRepository) withRemoteRepositories
(List<RemoteRepository> repositories) 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, getDependency, getListeners, getNode, getNode, getPathForLocalArtifact, getPathForRemoteArtifact, getProject, getProjects, getRemoteRepository, installArtifacts, installArtifacts, isVersionSnapshot, parseVersion, parseVersionConstraint, parseVersionRange, registerListener, resolveArtifact, resolveArtifact, resolveArtifacts, resolveArtifacts, resolveArtifacts, resolveDependencies, resolveDependencies, resolveDependencies, resolveVersion, resolveVersionRange, setArtifactPath, toArtifact, toArtifact, toArtifactRepositories, toArtifacts, toDependencies, toRepositories, toRepository, toRepository, unregisterListener
-
Constructor Details
-
DefaultSession
public DefaultSession(@Nonnull MavenSession session, @Nonnull org.eclipse.aether.RepositorySystem repositorySystem, @Nullable List<RemoteRepository> repositories, @Nonnull MavenRepositorySystem mavenRepositorySystem, @Nonnull Lookup lookup, @Nonnull RuntimeInformation runtimeInformation)
-
-
Method Details
-
getMavenSession
-
getLocalRepository
-
getRemoteRepositories
-
getSettings
@Nonnull public org.apache.maven.api.settings.Settings getSettings() -
getUserProperties
-
getSystemProperties
-
getMavenVersion
-
getDegreeOfConcurrency
public int getDegreeOfConcurrency() -
getStartTime
-
getRootDirectory
-
getTopDirectory
-
getProjects
-
getPluginContext
-
getData
-
withLocalRepository
-
withRemoteRepositories
-
getService
- Throws:
NoSuchElementException
-
getSession
@Nonnull public org.eclipse.aether.RepositorySystemSession getSession() -
getRepositorySystem
@Nonnull public org.eclipse.aether.RepositorySystem getRepositorySystem() -
toArtifactRepository
- Specified by:
toArtifactRepository
in interfaceInternalSession
- Specified by:
toArtifactRepository
in classAbstractSession
-
toDependency
- Specified by:
toDependency
in interfaceInternalSession
- Specified by:
toDependency
in classAbstractSession
-