public class AetherBasedResolver extends Object implements MavenResolver
MavenResolver.RetryChance| Constructor and Description |
|---|
AetherBasedResolver(MavenConfiguration configuration)
Create a AetherBasedResolver
|
AetherBasedResolver(MavenConfiguration configuration,
MirrorInfo mirror)
Create a AetherBasedResolver
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected org.eclipse.aether.RepositoryException |
findAetherException(Exception e)
Find top-most Aether exception
|
List<org.eclipse.aether.repository.RemoteRepository> |
getRepositories() |
org.eclipse.aether.RepositorySystem |
getRepositorySystem() |
MavenResolver.RetryChance |
isRetryableException(Exception exception)
Returns a hint about possible retry of operation that ended with
exception |
org.eclipse.aether.RepositorySystemSession |
newSession() |
File |
resolve(org.eclipse.aether.artifact.Artifact artifact)
Resolve maven artifact as file in repository.
|
File |
resolve(org.eclipse.aether.artifact.Artifact artifact,
MavenRepositoryURL repositoryURL,
Exception previousException)
Resolve maven artifact as file in repository.
|
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 maven artifact as file in repository.
|
File |
resolve(String groupId,
String artifactId,
String classifier,
String extension,
String version,
Exception previousException)
Resolve and download an artifact - possibly as another attempt.
|
File |
resolve(String groupId,
String artifactId,
String classifier,
String extension,
String version,
MavenRepositoryURL repositoryURL,
Exception previousException)
Resolve maven artifact as file in repository.
|
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.
|
protected Throwable |
rootException(Exception ex)
Find root exception
|
void |
upload(String groupId,
String artifactId,
String classifier,
String extension,
String version,
File file)
Install the specified artifact in the local repository
|
void |
uploadMetadata(String groupId,
String artifactId,
String type,
String version,
File file)
Install the specified artifact metadata in the local repository
|
public AetherBasedResolver(MavenConfiguration configuration)
configuration - (must be not null)public AetherBasedResolver(MavenConfiguration configuration, MirrorInfo mirror)
configuration - (must be not null)public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic org.eclipse.aether.RepositorySystem getRepositorySystem()
public List<org.eclipse.aether.repository.RemoteRepository> getRepositories()
public File resolve(String url) throws IOException
MavenResolverresolve in interface MavenResolverIOExceptionpublic File resolve(String url, Exception previousException) throws IOException
MavenResolverpreviousException is a hint to resolver.resolve in interface MavenResolverIOExceptionpublic File resolve(String groupId, String artifactId, String classifier, String extension, String version) throws IOException
resolve in interface MavenResolverIOExceptionpublic File resolve(String groupId, String artifactId, String classifier, String extension, String version, Exception previousException) throws IOException
MavenResolverpreviousException is a hint to resolver.resolve in interface MavenResolverIOExceptionpublic File resolve(String groupId, String artifactId, String classifier, String extension, String version, MavenRepositoryURL repositoryURL, Exception previousException) throws IOException
IOExceptionpublic File resolve(org.eclipse.aether.artifact.Artifact artifact) throws IOException
IOExceptionpublic File resolve(org.eclipse.aether.artifact.Artifact artifact, MavenRepositoryURL repositoryURL, Exception previousException) throws IOException
IOExceptionpublic File resolveMetadata(String groupId, String artifactId, String type, String version) throws IOException
MavenResolverresolveMetadata in interface MavenResolverIOExceptionpublic File resolveMetadata(String groupId, String artifactId, String type, String version, Exception previousException) throws IOException
MavenResolverpreviousException is a hint to resolver.resolveMetadata in interface MavenResolverIOExceptionpublic void upload(String groupId, String artifactId, String classifier, String extension, String version, File file) throws IOException
MavenResolverupload in interface MavenResolverIOExceptionpublic void uploadMetadata(String groupId, String artifactId, String type, String version, File file) throws IOException
MavenResolveruploadMetadata in interface MavenResolverIOExceptionpublic MavenResolver.RetryChance isRetryableException(Exception exception)
MavenResolverexceptionisRetryableException in interface MavenResolverprotected org.eclipse.aether.RepositoryException findAetherException(Exception e)
e - protected Throwable rootException(Exception ex)
ex - public org.eclipse.aether.RepositorySystemSession newSession()
Copyright © 2006–2016 OPS4J - Open Participation Software for Java. All rights reserved.