@Loggable(value=1) public final class Aether extends Object
You need the following dependencies to have in classpath in order to to work with this class:
org.sonatype.aether:aether-api:1.13.1 org.apache.maven:maven-core:3.0.3
Classpath| Constructor and Description |
|---|
Aether(Collection<org.sonatype.aether.repository.RemoteRepository> repos,
File repo)
Public ctor, requires information about all remote repositories and one
lrepo.
|
Aether(org.apache.maven.project.MavenProject prj,
File repo)
Public ctor, requires information about all remote repositories and one
lrepo.
|
| Modifier and Type | Method and Description |
|---|---|
List<org.sonatype.aether.artifact.Artifact> |
resolve(org.sonatype.aether.artifact.Artifact root,
String scope)
List of transitive dependencies of the artifact.
|
List<org.sonatype.aether.artifact.Artifact> |
resolve(org.sonatype.aether.artifact.Artifact root,
String scope,
org.sonatype.aether.graph.DependencyFilter filter)
List of transitive dependencies of the artifact.
|
public Aether(@NotNull
org.apache.maven.project.MavenProject prj,
@NotNull
File repo)
prj - The Maven projectrepo - Local repository location (directory path)public Aether(@NotNull
Collection<org.sonatype.aether.repository.RemoteRepository> repos,
@NotNull
File repo)
repos - Collection of remote repositoriesrepo - Local repository location (directory path)public List<org.sonatype.aether.artifact.Artifact> resolve(@NotNull org.sonatype.aether.artifact.Artifact root, @NotNull String scope) throws org.sonatype.aether.resolution.DependencyResolutionException
root - The artifact to work withscope - The scope to work with ("runtime", "test", etc.)org.sonatype.aether.resolution.DependencyResolutionException - If can't fetch itpublic List<org.sonatype.aether.artifact.Artifact> resolve(@NotNull org.sonatype.aether.artifact.Artifact root, @NotNull String scope, @NotNull org.sonatype.aether.graph.DependencyFilter filter) throws org.sonatype.aether.resolution.DependencyResolutionException
root - The artifact to work withscope - The scope to work with ("runtime", "test", etc.)filter - The dependency filter to work withorg.sonatype.aether.resolution.DependencyResolutionException - If can't fetch itCopyright © 2012–2014 jcabi.com. All rights reserved.