public class DependencyResolver extends Object
| 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)
localRepoPath - the directory of local repositorypublic void setProxy(org.eclipse.aether.repository.Proxy proxyParam)
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
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 © 2023 The Apache Software Foundation. All rights reserved.