public abstract class AbstractSession extends Object implements Session
| Constructor and Description |
|---|
AbstractSession() |
| Modifier and Type | Method and Description |
|---|---|
Node |
collectDependencies(Artifact artifact)
Shortcut for
getService(DependencyCollector.class).collect(...) |
Node |
collectDependencies(DependencyCoordinate dependency)
Shortcut for
getService(DependencyCollector.class).collect(...) |
Node |
collectDependencies(Project project)
Shortcut for
getService(DependencyCollector.class).collect(...) |
Artifact |
createArtifact(String groupId,
String artifactId,
String version,
String extension)
Shortcut for
getService(ArtifactFactory.class).create(...) |
Artifact |
createArtifact(String groupId,
String artifactId,
String version,
String classifier,
String extension,
String type)
Shortcut for
getService(ArtifactFactory.class).create(...) |
ArtifactCoordinate |
createArtifactCoordinate(Artifact artifact)
Shortcut for
getService(CoordinateFactory.class).create(...) |
ArtifactCoordinate |
createArtifactCoordinate(String groupId,
String artifactId,
String version,
String extension)
Shortcut for
getService(CoordinateFactory.class).create(...) |
ArtifactCoordinate |
createArtifactCoordinate(String groupId,
String artifactId,
String version,
String classifier,
String extension,
String type)
Shortcut for
getService(CoordinateFactory.class).create(...) |
DependencyCoordinate |
createDependencyCoordinate(ArtifactCoordinate coordinate)
Shortcut for
getService(DependencyFactory.class).create(...) |
DependencyCoordinate |
createDependencyCoordinate(Dependency dependency)
Shortcut for
getService(DependencyFactory.class).create(...) |
LocalRepository |
createLocalRepository(Path path)
Shortcut for
getService(RepositoryFactory.class).createLocal(...) |
RemoteRepository |
createRemoteRepository(org.apache.maven.api.model.Repository repository)
Shortcut for
getService(RepositoryFactory.class).createRemote(...) |
RemoteRepository |
createRemoteRepository(String id,
String url)
Shortcut for
getService(RepositoryFactory.class).createRemote(...) |
void |
deployArtifact(RemoteRepository repository,
Artifact... artifacts)
Shortcut for
getService(ArtifactDeployer.class).deploy(...) |
Artifact |
getArtifact(org.eclipse.aether.artifact.Artifact artifact) |
Optional<Path> |
getArtifactPath(Artifact artifact)
Shortcut for
getService(ArtifactManager.class).getPath(...) |
Dependency |
getDependency(org.eclipse.aether.graph.Dependency dependency) |
Collection<Listener> |
getListeners() |
Node |
getNode(org.eclipse.aether.graph.DependencyNode node) |
Node |
getNode(org.eclipse.aether.graph.DependencyNode node,
boolean verbose) |
Path |
getPathForLocalArtifact(Artifact artifact) |
Path |
getPathForRemoteArtifact(RemoteRepository remote,
Artifact artifact) |
Project |
getProject(MavenProject project) |
List<Project> |
getProjects(List<MavenProject> projects) |
RemoteRepository |
getRemoteRepository(org.eclipse.aether.repository.RemoteRepository repository) |
void |
installArtifacts(Artifact... artifacts)
Shortcut for
getService(ArtifactInstaller.class).install(...) |
void |
installArtifacts(Collection<Artifact> artifacts)
Shortcut for
getService(ArtifactInstaller.class).install(...) |
boolean |
isVersionSnapshot(String version)
Shortcut for
getService(VersionParser.class).isSnapshot(...) |
Version |
parseVersion(String version) |
VersionRange |
parseVersionRange(String versionRange) |
void |
registerListener(Listener listener) |
Artifact |
resolveArtifact(Artifact artifact)
Shortcut for
getService(ArtifactResolver.class).resolve(...) |
Artifact |
resolveArtifact(ArtifactCoordinate coordinate)
Shortcut for
getService(ArtifactResolver.class).resolve(...) |
Collection<Artifact> |
resolveArtifacts(Artifact... artifacts) |
Collection<Artifact> |
resolveArtifacts(ArtifactCoordinate... coordinates)
Shortcut for
getService(ArtifactResolver.class).resolve(...) |
Collection<Artifact> |
resolveArtifacts(Collection<? extends ArtifactCoordinate> coordinates)
Shortcut for
getService(ArtifactResolver.class).resolve(...) |
void |
setArtifactPath(Artifact artifact,
Path path)
Shortcut for
getService(ArtifactManager.class).setPath(...) |
org.eclipse.aether.artifact.Artifact |
toArtifact(Artifact artifact) |
org.eclipse.aether.artifact.Artifact |
toArtifact(ArtifactCoordinate coord) |
List<ArtifactRepository> |
toArtifactRepositories(List<RemoteRepository> repositories) |
abstract ArtifactRepository |
toArtifactRepository(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.Dependency |
toDependency(DependencyCoordinate dependency) |
List<org.eclipse.aether.repository.RemoteRepository> |
toRepositories(List<RemoteRepository> repositories) |
org.eclipse.aether.repository.LocalRepository |
toRepository(LocalRepository repository) |
org.eclipse.aether.repository.RemoteRepository |
toRepository(RemoteRepository repository) |
void |
unregisterListener(Listener listener) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetData, getDegreeOfConcurrency, getExecutionRootDirectory, getLocalRepository, getMavenVersion, getMultiModuleProjectDirectory, getPluginContext, getProjects, getRemoteRepositories, getService, getSettings, getStartTime, getSystemProperties, getUserProperties, withLocalRepository, withRemoteRepositoriespublic RemoteRepository getRemoteRepository(org.eclipse.aether.repository.RemoteRepository repository)
public Node getNode(org.eclipse.aether.graph.DependencyNode node)
public Node getNode(org.eclipse.aether.graph.DependencyNode node, boolean verbose)
@Nonnull public Artifact getArtifact(@Nonnull org.eclipse.aether.artifact.Artifact artifact)
@Nonnull public Dependency getDependency(@Nonnull org.eclipse.aether.graph.Dependency dependency)
public List<Project> getProjects(List<MavenProject> projects)
public Project getProject(MavenProject project)
public List<org.eclipse.aether.repository.RemoteRepository> toRepositories(List<RemoteRepository> repositories)
public org.eclipse.aether.repository.RemoteRepository toRepository(RemoteRepository repository)
public org.eclipse.aether.repository.LocalRepository toRepository(LocalRepository repository)
public List<ArtifactRepository> toArtifactRepositories(List<RemoteRepository> repositories)
public abstract ArtifactRepository toArtifactRepository(RemoteRepository repository)
public List<org.eclipse.aether.graph.Dependency> toDependencies(Collection<DependencyCoordinate> dependencies)
public abstract org.eclipse.aether.graph.Dependency toDependency(DependencyCoordinate dependency)
public List<org.eclipse.aether.artifact.Artifact> toArtifacts(Collection<Artifact> artifacts)
public org.eclipse.aether.artifact.Artifact toArtifact(Artifact artifact)
public org.eclipse.aether.artifact.Artifact toArtifact(ArtifactCoordinate coord)
public void registerListener(@Nonnull Listener listener)
registerListener in interface Sessionpublic void unregisterListener(@Nonnull Listener listener)
unregisterListener in interface Session@Nonnull public Collection<Listener> getListeners()
getListeners in interface Sessionpublic LocalRepository createLocalRepository(Path path)
getService(RepositoryFactory.class).createLocal(...)createLocalRepository in interface SessionRepositoryFactory.createLocal(Path)@Nonnull public RemoteRepository createRemoteRepository(@Nonnull String id, @Nonnull String url)
getService(RepositoryFactory.class).createRemote(...)createRemoteRepository in interface SessionRepositoryFactory.createRemote(String, String)@Nonnull public RemoteRepository createRemoteRepository(@Nonnull org.apache.maven.api.model.Repository repository)
getService(RepositoryFactory.class).createRemote(...)createRemoteRepository in interface SessionRepositoryFactory.createRemote(Repository)public ArtifactCoordinate createArtifactCoordinate(String groupId, String artifactId, String version, String extension)
getService(CoordinateFactory.class).create(...)createArtifactCoordinate in interface SessionArtifactFactory.create(Session, String, String, String, String)public ArtifactCoordinate createArtifactCoordinate(String groupId, String artifactId, String version, String classifier, String extension, String type)
getService(CoordinateFactory.class).create(...)createArtifactCoordinate in interface SessionArtifactCoordinateFactory.create(Session, String, String, String, String, String, String)public ArtifactCoordinate createArtifactCoordinate(Artifact artifact)
getService(CoordinateFactory.class).create(...)createArtifactCoordinate in interface SessionArtifactCoordinateFactory.create(Session, String, String, String, String, String, String)public Artifact createArtifact(String groupId, String artifactId, String version, String extension)
getService(ArtifactFactory.class).create(...)createArtifact in interface SessionArtifactFactory.create(Session, String, String, String, String)public Artifact createArtifact(String groupId, String artifactId, String version, String classifier, String extension, String type)
getService(ArtifactFactory.class).create(...)createArtifact in interface SessionArtifactFactory.create(Session, String, String, String, String, String, String)public Artifact resolveArtifact(ArtifactCoordinate coordinate)
getService(ArtifactResolver.class).resolve(...)resolveArtifact in interface SessionArtifactResolverException - if the artifact resolution failedArtifactResolver.resolve(Session, Collection)public Collection<Artifact> resolveArtifacts(ArtifactCoordinate... coordinates)
getService(ArtifactResolver.class).resolve(...)resolveArtifacts in interface SessionArtifactResolverException - if the artifact resolution failedArtifactResolver.resolve(Session, Collection)public Collection<Artifact> resolveArtifacts(Collection<? extends ArtifactCoordinate> coordinates)
getService(ArtifactResolver.class).resolve(...)resolveArtifacts in interface SessionArtifactResolverException - if the artifact resolution failedArtifactResolver.resolve(Session, Collection)public Artifact resolveArtifact(Artifact artifact)
getService(ArtifactResolver.class).resolve(...)resolveArtifact in interface SessionArtifactResolverException - if the artifact resolution failedArtifactResolver.resolve(Session, Collection)public Collection<Artifact> resolveArtifacts(Artifact... artifacts)
resolveArtifacts in interface Sessionpublic void installArtifacts(Artifact... artifacts)
getService(ArtifactInstaller.class).install(...)installArtifacts in interface SessionArtifactInstallerException - if the artifacts installation failedArtifactInstaller.install(Session, Collection)public void installArtifacts(Collection<Artifact> artifacts)
getService(ArtifactInstaller.class).install(...)installArtifacts in interface SessionArtifactInstallerException - if the artifacts installation failedArtifactInstaller.install(Session, Collection)public void deployArtifact(RemoteRepository repository, Artifact... artifacts)
getService(ArtifactDeployer.class).deploy(...)deployArtifact in interface SessionArtifactDeployerException - if the artifacts deployment failedArtifactDeployer.deploy(Session, RemoteRepository, Collection)public void setArtifactPath(@Nonnull Artifact artifact, @Nonnull Path path)
getService(ArtifactManager.class).setPath(...)setArtifactPath in interface SessionArtifactManager.setPath(Artifact, Path)@Nonnull public Optional<Path> getArtifactPath(@Nonnull Artifact artifact)
getService(ArtifactManager.class).getPath(...)getArtifactPath in interface SessionArtifactManager.getPath(Artifact)public boolean isVersionSnapshot(@Nonnull String version)
getService(VersionParser.class).isSnapshot(...)isVersionSnapshot in interface SessionVersionParser.isSnapshot(String)@Nonnull public DependencyCoordinate createDependencyCoordinate(@Nonnull ArtifactCoordinate coordinate)
getService(DependencyFactory.class).create(...)createDependencyCoordinate in interface SessionDependencyCoordinateFactory.create(Session, ArtifactCoordinate)@Nonnull public DependencyCoordinate createDependencyCoordinate(@Nonnull Dependency dependency)
getService(DependencyFactory.class).create(...)@Nonnull public Node collectDependencies(@Nonnull Artifact artifact)
getService(DependencyCollector.class).collect(...)collectDependencies in interface SessionDependencyCollectorException - if the dependency collection failedDependencyCollector.collect(Session, Artifact)@Nonnull public Node collectDependencies(@Nonnull Project project)
getService(DependencyCollector.class).collect(...)collectDependencies in interface SessionDependencyCollectorException - if the dependency collection failedDependencyCollector.collect(Session, Project)@Nonnull public Node collectDependencies(@Nonnull DependencyCoordinate dependency)
getService(DependencyCollector.class).collect(...)collectDependencies in interface SessionDependencyCollectorException - if the dependency collection failedDependencyCollector.collect(Session, DependencyCoordinate)public Path getPathForLocalArtifact(@Nonnull Artifact artifact)
getPathForLocalArtifact in interface Sessionpublic Path getPathForRemoteArtifact(RemoteRepository remote, Artifact artifact)
getPathForRemoteArtifact in interface Sessionpublic Version parseVersion(String version)
parseVersion in interface Sessionpublic VersionRange parseVersionRange(String versionRange)
parseVersionRange in interface SessionCopyright © 2001–2022 The Apache Software Foundation. All rights reserved.