Class DependencyResolver
java.lang.Object
org.apache.storm.submit.dependency.DependencyResolver
Resolver class of dependencies.
-
Constructor Summary
ConstructorDescriptionDependencyResolver
(String localRepoPath) Constuctor.DependencyResolver
(String localRepoPath, List<org.eclipse.aether.repository.RemoteRepository> repositories) Constuctor. -
Method Summary
-
Constructor Details
-
DependencyResolver
Constuctor.- Parameters:
localRepoPath
- the directory of local repository
-
DependencyResolver
public DependencyResolver(String localRepoPath, List<org.eclipse.aether.repository.RemoteRepository> repositories) Constuctor.- Parameters:
localRepoPath
- the directory of local repositoryrepositories
- list of remote repositories
-
-
Method Details
-
setProxy
public void setProxy(org.eclipse.aether.repository.Proxy proxyParam) Setter of proxy if needed.- Parameters:
proxyParam
- proxy object
-
resolve
public 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.- Parameters:
dependencies
- the list of dependency- Returns:
- downloaded information of artifacts
- Throws:
org.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.
-