public class AetherArtifactProvider extends Object implements ArtifactProvider
| Constructor and Description |
|---|
AetherArtifactProvider(URL repositoryUrl,
MavenRepositoryDescriptor repositoryDescriptor,
File workDirectory)
Creates a new object.
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.aether.resolution.ArtifactResult |
getArtifact(org.eclipse.aether.artifact.Artifact artifact)
Resolves the given artifact.
|
com.buschmais.jqassistant.plugin.maven3.api.artifact.ArtifactResolver |
getArtifactResolver()
Return the associated artifact resolver.
|
com.buschmais.jqassistant.plugin.common.api.scanner.FileResolver |
getFileResolver()
Return the file resolver strategy to use for resolving artifacts.
|
MavenIndex |
getMavenIndex()
Return the index of the remote repository.
|
MavenRepositoryDescriptor |
getRepositoryDescriptor()
Return the repository descriptor for the repository.
|
public AetherArtifactProvider(URL repositoryUrl, MavenRepositoryDescriptor repositoryDescriptor, File workDirectory)
repositoryUrl - The repository urlrepositoryDescriptor - The repository descriptor.workDirectory - The work directory for local caching of files.public MavenRepositoryDescriptor getRepositoryDescriptor()
ArtifactProvidergetRepositoryDescriptor in interface ArtifactProviderpublic org.eclipse.aether.resolution.ArtifactResult getArtifact(org.eclipse.aether.artifact.Artifact artifact)
throws org.eclipse.aether.resolution.ArtifactResolutionException
getArtifact in interface ArtifactProviderartifact - the artifact to resolveorg.eclipse.aether.resolution.ArtifactResolutionException - in case of a unresolvable artifactspublic com.buschmais.jqassistant.plugin.common.api.scanner.FileResolver getFileResolver()
ArtifactProvidergetFileResolver in interface ArtifactProviderpublic com.buschmais.jqassistant.plugin.maven3.api.artifact.ArtifactResolver getArtifactResolver()
ArtifactProvidergetArtifactResolver in interface ArtifactProviderpublic MavenIndex getMavenIndex() throws IOException
IOException - If the local index directoy cannot be created.Copyright © 2016 buschmais GbR. All rights reserved.