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()
ArtifactProvider
getRepositoryDescriptor
in interface ArtifactProvider
public org.eclipse.aether.resolution.ArtifactResult getArtifact(org.eclipse.aether.artifact.Artifact artifact) throws org.eclipse.aether.resolution.ArtifactResolutionException
getArtifact
in interface ArtifactProvider
artifact
- the artifact to resolveorg.eclipse.aether.resolution.ArtifactResolutionException
- in case of a unresolvable artifactspublic com.buschmais.jqassistant.plugin.common.api.scanner.FileResolver getFileResolver()
ArtifactProvider
getFileResolver
in interface ArtifactProvider
public com.buschmais.jqassistant.plugin.maven3.api.artifact.ArtifactResolver getArtifactResolver()
ArtifactProvider
getArtifactResolver
in interface ArtifactProvider
public MavenIndex getMavenIndex() throws IOException
IOException
- If the local index directoy cannot be created.Copyright © 2016 buschmais GbR. All rights reserved.