public interface ArtifactMetadataSource
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ROLE |
Modifier and Type | Method and Description |
---|---|
ResolutionGroup |
retrieve(Artifact artifact,
ArtifactRepository localRepository,
java.util.List remoteRepositories) |
java.util.List |
retrieveAvailableVersions(Artifact artifact,
ArtifactRepository localRepository,
java.util.List remoteRepositories)
Get a list of available versions for an artifact in the remote repository
|
Artifact |
retrieveRelocatedArtifact(Artifact artifact,
ArtifactRepository localRepository,
java.util.List remoteRepositories)
Resolve all relocations in the POM for this artifact, and return the new artifact coordinate.
|
ResolutionGroup retrieve(Artifact artifact, ArtifactRepository localRepository, java.util.List remoteRepositories) throws ArtifactMetadataRetrievalException
Artifact retrieveRelocatedArtifact(Artifact artifact, ArtifactRepository localRepository, java.util.List remoteRepositories) throws ArtifactMetadataRetrievalException
java.util.List retrieveAvailableVersions(Artifact artifact, ArtifactRepository localRepository, java.util.List remoteRepositories) throws ArtifactMetadataRetrievalException
artifact
- artifact we are interested in. Only groupid
and artifactId
are needed, for instance the following code will work
artifactFactory.createProjectArtifact( "org.apache.maven", "maven", "" )
localRepository
- local repositoryremoteRepositories
- remote repositories, List
$lt; ArtifactRepository
>List
$lt; ArtifactVersion
>ArtifactMetadataRetrievalException
- in case of error while retrieving repository metadata from the repository.