@Loggable(value=2) 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(MavenProject prj,
File repo)
Public ctor, requires information about all remote repos and one
local.
|
public Aether(@NotNull MavenProject prj, @NotNull File repo)
prj
- The Maven projectrepo
- Local repository location (directory 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 itpublic List<Artifact> resolve(@NotNull Artifact root, @NotNull String scope, @NotNull DependencyFilter filter) throws DependencyResolutionException
root
- The artifact to work withscope
- The scope to work with ("runtime", "test", etc.)filter
- The dependency filter to work withDependencyResolutionException
- If can't fetch itCopyright © 2012-2013 jcabi.com. All Rights Reserved.