Package org.apache.maven.internal.impl
Class AbstractSession
java.lang.Object
org.apache.maven.internal.impl.AbstractSession
- All Implemented Interfaces:
- Session,- InternalSession
- Direct Known Subclasses:
- DefaultSession
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncollectDependencies(Artifact artifact) Shortcut forgetService(DependencyCollector.class).collect(...)collectDependencies(DependencyCoordinate dependency) Shortcut forgetService(DependencyCollector.class).collect(...)collectDependencies(Project project) Shortcut forgetService(DependencyCollector.class).collect(...)createArtifact(String groupId, String artifactId, String version, String extension) Shortcut forgetService(ArtifactFactory.class).create(...)createArtifact(String groupId, String artifactId, String version, String classifier, String extension, String type) Shortcut forgetService(ArtifactFactory.class).create(...)createArtifactCoordinate(String coordString) Shortcut forgetService(CoordinateFactory.class).create(...)createArtifactCoordinate(String groupId, String artifactId, String version, String extension) Shortcut forgetService(CoordinateFactory.class).create(...)createArtifactCoordinate(String groupId, String artifactId, String version, String classifier, String extension, String type) Shortcut forgetService(CoordinateFactory.class).create(...)createArtifactCoordinate(Artifact artifact) Shortcut forgetService(CoordinateFactory.class).create(...)createDependencyCoordinate(ArtifactCoordinate coordinate) Shortcut forgetService(DependencyFactory.class).create(...)createDependencyCoordinate(Dependency dependency) Shortcut forgetService(DependencyFactory.class).create(...)createLocalRepository(Path path) Shortcut forgetService(RepositoryFactory.class).createLocal(...)createRemoteRepository(String id, String url) Shortcut forgetService(RepositoryFactory.class).createRemote(...)createRemoteRepository(org.apache.maven.api.model.Repository repository) Shortcut forgetService(RepositoryFactory.class).createRemote(...)voiddeployArtifact(RemoteRepository repository, Artifact... artifacts) Shortcut forgetService(ArtifactDeployer.class).deploy(...)flattenDependencies(Node node, ResolutionScope scope) getArtifact(org.eclipse.aether.artifact.Artifact artifact) getArtifactPath(Artifact artifact) Shortcut forgetService(ArtifactManager.class).getPath(...)getDependency(org.eclipse.aether.graph.Dependency dependency) getNode(org.eclipse.aether.graph.DependencyNode node) getNode(org.eclipse.aether.graph.DependencyNode node, boolean verbose) getPathForLocalArtifact(Artifact artifact) getPathForRemoteArtifact(RemoteRepository remote, Artifact artifact) getProject(MavenProject project) getProjects(List<MavenProject> projects) getRemoteRepository(org.eclipse.aether.repository.RemoteRepository repository) voidinstallArtifacts(Collection<Artifact> artifacts) Shortcut forgetService(ArtifactInstaller.class).install(...)voidinstallArtifacts(Artifact... artifacts) Shortcut forgetService(ArtifactInstaller.class).install(...)booleanisVersionSnapshot(String version) Shortcut forgetService(VersionParser.class).isSnapshot(...)parseVersion(String version) parseVersionConstraint(String versionConstraint) parseVersionRange(String versionRange) voidregisterListener(Listener listener) resolveArtifact(Artifact artifact) Shortcut forgetService(ArtifactResolver.class).resolve(...)resolveArtifact(ArtifactCoordinate coordinate) Shortcut forgetService(ArtifactResolver.class).resolve(...)resolveArtifacts(Collection<? extends ArtifactCoordinate> coordinates) Shortcut forgetService(ArtifactResolver.class).resolve(...)resolveArtifacts(Artifact... artifacts) resolveArtifacts(ArtifactCoordinate... coordinates) Shortcut forgetService(ArtifactResolver.class).resolve(...)resolveDependencies(List<DependencyCoordinate> dependencies) resolveDependencies(DependencyCoordinate dependency) resolveDependencies(Project project, ResolutionScope scope) resolveVersion(ArtifactCoordinate artifact) resolveVersionRange(ArtifactCoordinate artifact) voidsetArtifactPath(Artifact artifact, Path path) Shortcut forgetService(ArtifactManager.class).setPath(...)org.eclipse.aether.artifact.ArtifacttoArtifact(Artifact artifact) org.eclipse.aether.artifact.ArtifacttoArtifact(ArtifactCoordinate coord) toArtifactRepositories(List<RemoteRepository> repositories) abstract ArtifactRepositorytoArtifactRepository(RemoteRepository repository) List<org.eclipse.aether.artifact.Artifact> toArtifacts(Collection<Artifact> artifacts) List<org.eclipse.aether.graph.Dependency> toDependencies(Collection<DependencyCoordinate> dependencies) abstract org.eclipse.aether.graph.DependencytoDependency(DependencyCoordinate dependency) List<org.eclipse.aether.repository.RemoteRepository> toRepositories(List<RemoteRepository> repositories) org.eclipse.aether.repository.LocalRepositorytoRepository(LocalRepository repository) org.eclipse.aether.repository.RemoteRepositorytoRepository(RemoteRepository repository) voidunregisterListener(Listener listener) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.internal.impl.InternalSessiongetMavenSession, getRepositorySystem, getSessionMethods inherited from interface org.apache.maven.api.SessiongetData, getDegreeOfConcurrency, getLocalRepository, getMavenVersion, getPluginContext, getProjects, getRemoteRepositories, getRootDirectory, getService, getSettings, getStartTime, getSystemProperties, getTopDirectory, getUserProperties, withLocalRepository, withRemoteRepositories
- 
Constructor Details- 
AbstractSessionpublic AbstractSession()
 
- 
- 
Method Details- 
getRemoteRepositorypublic RemoteRepository getRemoteRepository(org.eclipse.aether.repository.RemoteRepository repository) - Specified by:
- getRemoteRepositoryin interface- InternalSession
 
- 
getNode- Specified by:
- getNodein interface- InternalSession
 
- 
getNode- Specified by:
- getNodein interface- InternalSession
 
- 
getArtifact- Specified by:
- getArtifactin interface- InternalSession
 
- 
getDependency- Specified by:
- getDependencyin interface- InternalSession
 
- 
getProjects- Specified by:
- getProjectsin interface- InternalSession
 
- 
getProject- Specified by:
- getProjectin interface- InternalSession
 
- 
toRepositoriespublic List<org.eclipse.aether.repository.RemoteRepository> toRepositories(List<RemoteRepository> repositories) - Specified by:
- toRepositoriesin interface- InternalSession
 
- 
toRepository- Specified by:
- toRepositoryin interface- InternalSession
 
- 
toRepository- Specified by:
- toRepositoryin interface- InternalSession
 
- 
toArtifactRepositories- Specified by:
- toArtifactRepositoriesin interface- InternalSession
 
- 
toArtifactRepository- Specified by:
- toArtifactRepositoryin interface- InternalSession
 
- 
toDependenciespublic List<org.eclipse.aether.graph.Dependency> toDependencies(Collection<DependencyCoordinate> dependencies) - Specified by:
- toDependenciesin interface- InternalSession
 
- 
toDependency- Specified by:
- toDependencyin interface- InternalSession
 
- 
toArtifacts- Specified by:
- toArtifactsin interface- InternalSession
 
- 
toArtifact- Specified by:
- toArtifactin interface- InternalSession
 
- 
toArtifact- Specified by:
- toArtifactin interface- InternalSession
 
- 
registerListener- Specified by:
- registerListenerin interface- Session
 
- 
unregisterListener- Specified by:
- unregisterListenerin interface- Session
 
- 
getListeners- Specified by:
- getListenersin interface- Session
 
- 
createLocalRepositoryShortcut forgetService(RepositoryFactory.class).createLocal(...)- Specified by:
- createLocalRepositoryin interface- Session
- See Also:
 
- 
createRemoteRepositoryShortcut forgetService(RepositoryFactory.class).createRemote(...)- Specified by:
- createRemoteRepositoryin interface- Session
- See Also:
 
- 
createRemoteRepository@Nonnull public RemoteRepository createRemoteRepository(@Nonnull org.apache.maven.api.model.Repository repository) Shortcut forgetService(RepositoryFactory.class).createRemote(...)- Specified by:
- createRemoteRepositoryin interface- Session
- See Also:
 
- 
createArtifactCoordinatepublic ArtifactCoordinate createArtifactCoordinate(String groupId, String artifactId, String version, String extension) Shortcut forgetService(CoordinateFactory.class).create(...)- Specified by:
- createArtifactCoordinatein interface- Session
- See Also:
 
- 
createArtifactCoordinateShortcut forgetService(CoordinateFactory.class).create(...)- Specified by:
- createArtifactCoordinatein interface- Session
- See Also:
 
- 
createArtifactCoordinatepublic ArtifactCoordinate createArtifactCoordinate(String groupId, String artifactId, String version, String classifier, String extension, String type) Shortcut forgetService(CoordinateFactory.class).create(...)- Specified by:
- createArtifactCoordinatein interface- Session
- See Also:
 
- 
createArtifactCoordinateShortcut forgetService(CoordinateFactory.class).create(...)- Specified by:
- createArtifactCoordinatein interface- Session
- See Also:
 
- 
createArtifactShortcut forgetService(ArtifactFactory.class).create(...)- Specified by:
- createArtifactin interface- Session
- See Also:
 
- 
createArtifactpublic Artifact createArtifact(String groupId, String artifactId, String version, String classifier, String extension, String type) Shortcut forgetService(ArtifactFactory.class).create(...)- Specified by:
- createArtifactin interface- Session
- See Also:
 
- 
resolveArtifactShortcut forgetService(ArtifactResolver.class).resolve(...)- Specified by:
- resolveArtifactin interface- Session
- Throws:
- ArtifactResolverException- if the artifact resolution failed
- See Also:
 
- 
resolveArtifactsShortcut forgetService(ArtifactResolver.class).resolve(...)- Specified by:
- resolveArtifactsin interface- Session
- Throws:
- ArtifactResolverException- if the artifact resolution failed
- See Also:
 
- 
resolveArtifactsShortcut forgetService(ArtifactResolver.class).resolve(...)- Specified by:
- resolveArtifactsin interface- Session
- Throws:
- ArtifactResolverException- if the artifact resolution failed
- See Also:
 
- 
resolveArtifactShortcut forgetService(ArtifactResolver.class).resolve(...)- Specified by:
- resolveArtifactin interface- Session
- Throws:
- ArtifactResolverException- if the artifact resolution failed
- See Also:
 
- 
resolveArtifacts- Specified by:
- resolveArtifactsin interface- Session
 
- 
installArtifactsShortcut forgetService(ArtifactInstaller.class).install(...)- Specified by:
- installArtifactsin interface- Session
- Throws:
- ArtifactInstallerException- if the artifacts installation failed
- See Also:
 
- 
installArtifactsShortcut forgetService(ArtifactInstaller.class).install(...)- Specified by:
- installArtifactsin interface- Session
- Throws:
- ArtifactInstallerException- if the artifacts installation failed
- See Also:
 
- 
deployArtifactShortcut forgetService(ArtifactDeployer.class).deploy(...)- Specified by:
- deployArtifactin interface- Session
- Throws:
- ArtifactDeployerException- if the artifacts deployment failed
- See Also:
 
- 
setArtifactPathShortcut forgetService(ArtifactManager.class).setPath(...)- Specified by:
- setArtifactPathin interface- Session
- See Also:
 
- 
getArtifactPathShortcut forgetService(ArtifactManager.class).getPath(...)- Specified by:
- getArtifactPathin interface- Session
- See Also:
 
- 
isVersionSnapshotShortcut forgetService(VersionParser.class).isSnapshot(...)- Specified by:
- isVersionSnapshotin interface- Session
- See Also:
 
- 
createDependencyCoordinate@Nonnull public DependencyCoordinate createDependencyCoordinate(@Nonnull ArtifactCoordinate coordinate) Shortcut forgetService(DependencyFactory.class).create(...)- Specified by:
- createDependencyCoordinatein interface- Session
- See Also:
 
- 
createDependencyCoordinateShortcut forgetService(DependencyFactory.class).create(...)- Specified by:
- createDependencyCoordinatein interface- Session
- See Also:
 
- 
collectDependenciesShortcut forgetService(DependencyCollector.class).collect(...)- Specified by:
- collectDependenciesin interface- Session
- Throws:
- DependencyCollectorException- if the dependency collection failed
- See Also:
 
- 
collectDependenciesShortcut forgetService(DependencyCollector.class).collect(...)- Specified by:
- collectDependenciesin interface- Session
- Throws:
- DependencyCollectorException- if the dependency collection failed
- See Also:
 
- 
collectDependenciesShortcut forgetService(DependencyCollector.class).collect(...)- Specified by:
- collectDependenciesin interface- Session
- Throws:
- DependencyCollectorException- if the dependency collection failed
- See Also:
 
- 
flattenDependencies- Specified by:
- flattenDependenciesin interface- Session
 
- 
resolveDependencies- Specified by:
- resolveDependenciesin interface- Session
 
- 
resolveDependencies- Specified by:
- resolveDependenciesin interface- Session
 
- 
resolveDependencies- Specified by:
- resolveDependenciesin interface- Session
 
- 
getPathForLocalArtifact- Specified by:
- getPathForLocalArtifactin interface- Session
 
- 
getPathForRemoteArtifact- Specified by:
- getPathForRemoteArtifactin interface- Session
 
- 
parseVersion- Specified by:
- parseVersionin interface- Session
 
- 
parseVersionRange- Specified by:
- parseVersionRangein interface- Session
 
- 
parseVersionConstraint- Specified by:
- parseVersionConstraintin interface- Session
 
- 
resolveVersion- Specified by:
- resolveVersionin interface- Session
 
- 
resolveVersionRange- Specified by:
- resolveVersionRangein interface- Session
 
 
-