public class DefaultSession extends AbstractSession
Constructor and Description |
---|
DefaultSession(MavenSession session,
org.eclipse.aether.RepositorySystem repositorySystem,
List<RemoteRepository> repositories,
MavenRepositorySystem mavenRepositorySystem,
org.codehaus.plexus.PlexusContainer container,
RuntimeInformation runtimeInformation) |
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
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)
public MavenSession getMavenSession()
@Nonnull public LocalRepository getLocalRepository()
@Nonnull public List<RemoteRepository> getRemoteRepositories()
@Nonnull public org.apache.maven.api.settings.Settings getSettings()
public int getDegreeOfConcurrency()
@Nonnull public SessionData getData()
@Nonnull public Session withLocalRepository(@Nonnull LocalRepository localRepository)
@Nonnull public Session withRemoteRepositories(@Nonnull List<RemoteRepository> repositories)
@Nonnull public <T extends Service> T getService(Class<T> clazz) throws NoSuchElementException
NoSuchElementException
@Nonnull public org.eclipse.aether.RepositorySystemSession getSession()
@Nonnull public org.eclipse.aether.RepositorySystem getRepositorySystem()
public ArtifactRepository toArtifactRepository(RemoteRepository repository)
toArtifactRepository
in class AbstractSession
public org.eclipse.aether.graph.Dependency toDependency(DependencyCoordinate dependency)
toDependency
in class AbstractSession
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.