public interface MavenResolver extends Closeable
| Modifier and Type | Interface and Description |
|---|---|
static class |
MavenResolver.RetryChance
Enumeration of retry hints that may be used by client code when trying to repeat failed resolution attempt
|
| Modifier and Type | Method and Description |
|---|---|
MavenResolver.RetryChance |
isRetryableException(Exception exception)
Returns a hint about possible retry of operation that ended with
exception |
File |
resolve(String url)
Resolve and download a maven based url
|
File |
resolve(String url,
Exception previousException)
Resolve and download a maven based url - possibly as another attempt.
|
File |
resolve(String groupId,
String artifactId,
String classifier,
String extension,
String version)
Resolve and download an artifact
|
File |
resolve(String groupId,
String artifactId,
String classifier,
String extension,
String version,
Exception previousException)
Resolve and download an artifact - possibly as another attempt.
|
File |
resolveMetadata(String groupId,
String artifactId,
String type,
String version)
Resolve the maven metadata xml for the specified groupId:artifactId:version
|
File |
resolveMetadata(String groupId,
String artifactId,
String type,
String version,
Exception previousException)
Resolve the maven metadata xml for the specified groupId:artifactId:version - possibly as another attempt.
|
void |
upload(String groupId,
String artifactId,
String classifier,
String extension,
String version,
File artifact)
Install the specified artifact in the local repository
|
void |
uploadMetadata(String groupId,
String artifactId,
String type,
String version,
File artifact)
Install the specified artifact metadata in the local repository
|
File resolve(String url) throws IOException
IOExceptionFile resolve(String url, Exception previousException) throws IOException
previousException is a hint to resolver.IOExceptionFile resolve(String groupId, String artifactId, String classifier, String extension, String version) throws IOException
IOExceptionFile resolve(String groupId, String artifactId, String classifier, String extension, String version, Exception previousException) throws IOException
previousException is a hint to resolver.IOExceptionFile resolveMetadata(String groupId, String artifactId, String type, String version) throws IOException
IOExceptionFile resolveMetadata(String groupId, String artifactId, String type, String version, Exception previousException) throws IOException
previousException is a hint to resolver.IOExceptionvoid upload(String groupId, String artifactId, String classifier, String extension, String version, File artifact) throws IOException
IOExceptionvoid uploadMetadata(String groupId, String artifactId, String type, String version, File artifact) throws IOException
IOExceptionMavenResolver.RetryChance isRetryableException(Exception exception)
exceptionexception - Copyright © 2006–2016 OPS4J - Open Participation Software for Java. All rights reserved.