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
-
Constructor Summary
ConstructorDescriptionDefaultSession
(MavenSession session, org.eclipse.aether.RepositorySystem repositorySystem, List<RemoteRepository> repositories, MavenRepositorySystem mavenRepositorySystem, org.codehaus.plexus.PlexusContainer container, 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, createDependencyCoordinate, createDependencyCoordinate, createLocalRepository, createRemoteRepository, createRemoteRepository, deployArtifact, getArtifact, getArtifactPath, getDependency, getListeners, getNode, getNode, getPathForLocalArtifact, getPathForRemoteArtifact, getProject, getProjects, getRemoteRepository, installArtifacts, installArtifacts, isVersionSnapshot, parseVersion, parseVersionRange, registerListener, resolveArtifact, resolveArtifact, resolveArtifacts, resolveArtifacts, resolveArtifacts, 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 org.codehaus.plexus.PlexusContainer container, @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
-
getMultiModuleProjectDirectory
-
getExecutionRootDirectory
-
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 classAbstractSession
-
toDependency
- Specified by:
toDependency
in classAbstractSession
-