Interface ArtifactMetadataSource
-
public interface ArtifactMetadataSourceProvides some metadata operations, like querying the remote repository for a list of versions available for an artifact.- Version:
- $Id$
- Author:
- Jason van Zyl
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringROLE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResolutionGroupretrieve(Artifact artifact, ArtifactRepository localRepository, java.util.List remoteRepositories)java.util.ListretrieveAvailableVersions(Artifact artifact, ArtifactRepository localRepository, java.util.List remoteRepositories)Get a list of available versions for an artifact in the remote repositoryArtifactretrieveRelocatedArtifact(Artifact artifact, ArtifactRepository localRepository, java.util.List remoteRepositories)Resolve all relocations in the POM for this artifact, and return the new artifact coordinate.
-
-
-
Method Detail
-
retrieve
ResolutionGroup retrieve(Artifact artifact, ArtifactRepository localRepository, java.util.List remoteRepositories) throws ArtifactMetadataRetrievalException
-
retrieveRelocatedArtifact
Artifact retrieveRelocatedArtifact(Artifact artifact, ArtifactRepository localRepository, java.util.List remoteRepositories) throws ArtifactMetadataRetrievalException
Resolve all relocations in the POM for this artifact, and return the new artifact coordinate.
-
retrieveAvailableVersions
java.util.List retrieveAvailableVersions(Artifact artifact, ArtifactRepository localRepository, java.util.List remoteRepositories) throws ArtifactMetadataRetrievalException
Get a list of available versions for an artifact in the remote repository- Parameters:
artifact- artifact we are interested in. OnlygroupidandartifactIdare needed, for instance the following code will workartifactFactory.createProjectArtifact( "org.apache.maven", "maven", "" )localRepository- local repositoryremoteRepositories- remote repositories,List$lt;ArtifactRepository>- Returns:
List$lt;ArtifactVersion>- Throws:
ArtifactMetadataRetrievalException- in case of error while retrieving repository metadata from the repository.
-
-