public class DependencyResolver extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) List<String> |
baseUrls |
(package private) Set<URL> |
classPathUrls |
(package private) String |
localRepo |
(package private) static org.slf4j.Logger |
log |
(package private) Set<Dependency> |
resolvedDependencies |
(package private) Set<String> |
scopes |
| Constructor and Description |
|---|
DependencyResolver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(Dependency dep) |
protected Set<Dependency> |
extractDependenciesFromPom(String repoUrl,
Dependency dep) |
List<String> |
extractVersions(Dependency d) |
File |
fetch(Dependency d,
File repoDir) |
Set<URL> |
getClasspathURLs() |
protected File |
getFileLocation(Dependency d) |
boolean |
isScopeIncluded(String scope) |
Set<Dependency> |
resolve(Dependency dep) |
String |
selectVersion(List<String> versions,
String ver) |
List<String> |
tryVersions(List<String> versions,
String ver) |
static org.slf4j.Logger log
String localRepo
final Set<Dependency> resolvedDependencies
public Set<Dependency> resolve(Dependency dep) throws Exception
Exceptionprotected File getFileLocation(Dependency d) throws Exception
Exceptionpublic List<String> extractVersions(Dependency d)
public File fetch(Dependency d, File repoDir) throws Exception
Exceptionpublic boolean exists(Dependency dep) throws Exception
Exceptionprotected Set<Dependency> extractDependenciesFromPom(String repoUrl, Dependency dep) throws Exception
Exceptionpublic boolean isScopeIncluded(String scope)
Copyright © 2018. All rights reserved.