public class ArtifactResolver extends Object
| Constructor and Description |
|---|
ArtifactResolver(URL repositoryUrl,
File localDirectory)
Creates a new object.
|
ArtifactResolver(URL repositoryUrl,
File localDirectory,
String username,
String password)
Creates a new object.
|
| Modifier and Type | Method and Description |
|---|---|
List<org.eclipse.aether.resolution.ArtifactResult> |
downloadArtifact(org.eclipse.aether.artifact.Artifact artifact)
Resolves an artifact with the given properties and transfers it in a
local repository.
|
public ArtifactResolver(URL repositoryUrl, File localDirectory)
repositoryUrl - the repository urllocalDirectory - the directory for resolved artifactspublic ArtifactResolver(URL repositoryUrl, File localDirectory, String username, String password)
repositoryUrl - the repository urllocalDirectory - the directory for resolved artifactsusername - an username for authenticationpassword - a password for authenticationpublic List<org.eclipse.aether.resolution.ArtifactResult> downloadArtifact(org.eclipse.aether.artifact.Artifact artifact) throws org.eclipse.aether.resolution.ArtifactResolutionException
artifact - the artifact to resolveorg.eclipse.aether.resolution.ArtifactResolutionException - in case of a unresolvable artifactsCopyright © 2015 buschmais GbR. All rights reserved.