public class DependencyResolver extends Object
Resolver class of dependencies.
Constructor and Description |
---|
DependencyResolver(String localRepoPath)
Constuctor.
|
DependencyResolver(String localRepoPath,
List<org.eclipse.aether.repository.RemoteRepository> repositories)
Constuctor.
|
Modifier and Type | Method and Description |
---|---|
List<org.eclipse.aether.resolution.ArtifactResult> |
resolve(List<org.eclipse.aether.graph.Dependency> dependencies)
Resolve dependencies and return downloaded information of artifacts.
|
void |
setProxy(org.eclipse.aether.repository.Proxy proxyParam)
Setter of proxy if needed.
|
public DependencyResolver(String localRepoPath)
Constuctor.
localRepoPath
- the directory of local repositorypublic void setProxy(org.eclipse.aether.repository.Proxy proxyParam)
Setter of proxy if needed.
proxyParam
- proxy objectpublic List<org.eclipse.aether.resolution.ArtifactResult> resolve(List<org.eclipse.aether.graph.Dependency> dependencies) throws org.eclipse.aether.resolution.DependencyResolutionException, org.eclipse.aether.resolution.ArtifactResolutionException
Resolve dependencies and return downloaded information of artifacts.
dependencies
- the list of dependencyorg.eclipse.aether.resolution.DependencyResolutionException
- If the dependency tree could not be built or any dependency artifact could not be resolved.org.eclipse.aether.resolution.ArtifactResolutionException
- If the artifact could not be resolved.Copyright © 2019 The Apache Software Foundation. All rights reserved.