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
The class is immutable and thread-safe.
Constructor and Description |
---|
Aether(MavenProject prj,
String repo)
Public ctor, requires information about all remote repos and one
local.
|
public Aether(@NotNull MavenProject prj, @NotNull String repo)
prj
- The Maven projectrepo
- Local repository location (file path)public List<Artifact> resolve(@NotNull Artifact root, @NotNull String scope) throws DependencyResolutionException
root
- The artifact to work withscope
- The scope to work with ("runtime", "test", etc.)DependencyResolutionException
- If can't fetch itCopyright © 2012 jcabi.com. All Rights Reserved.