public class AetherBasedResolver extends Object implements MavenResolver
| Constructor and Description |
|---|
AetherBasedResolver(MavenConfiguration configuration)
Create a AetherBasedResolver
|
AetherBasedResolver(MavenConfiguration configuration,
org.apache.maven.settings.Mirror mirror)
Create a AetherBasedResolver
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<org.eclipse.aether.repository.RemoteRepository> |
getRepositories() |
org.eclipse.aether.RepositorySystem |
getRepositorySystem() |
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)
Resolve maven artifact as file in repository.
|
File |
resolve(String url)
Resolve and download a maven based url
|
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,
MavenRepositoryURL repositoryURL)
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
|
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, org.apache.maven.settings.Mirror 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 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, MavenRepositoryURL repositoryURL) throws IOException
IOExceptionpublic File resolve(org.eclipse.aether.artifact.Artifact artifact) throws IOException
IOExceptionpublic File resolve(org.eclipse.aether.artifact.Artifact artifact, MavenRepositoryURL repositoryURL) throws IOException
IOExceptionpublic File resolveMetadata(String groupId, String artifactId, String type, String version) throws IOException
MavenResolverresolveMetadata 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 org.eclipse.aether.RepositorySystemSession newSession()
Copyright © 2006–2015 OPS4J - Open Participation Software for Java. All rights reserved.