|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ArtifactMetadataSource
Provides some metadata operations, like querying the remote repository for a list of versions available for an artifact.
| Method Summary | |
|---|---|
ResolutionGroup |
retrieve(Artifact artifact,
ArtifactRepository localRepository,
List<ArtifactRepository> remoteRepositories)
|
ResolutionGroup |
retrieve(MetadataResolutionRequest request)
|
List<ArtifactVersion> |
retrieveAvailableVersions(Artifact artifact,
ArtifactRepository localRepository,
List<ArtifactRepository> remoteRepositories)
Get a list of available versions for an artifact in the remote repository |
List<ArtifactVersion> |
retrieveAvailableVersionsFromDeploymentRepository(Artifact artifact,
ArtifactRepository localRepository,
ArtifactRepository remoteRepository)
Get a list of available versions for an artifact in the remote deployment repository. |
| Method Detail |
|---|
ResolutionGroup retrieve(MetadataResolutionRequest request)
throws ArtifactMetadataRetrievalException
ArtifactMetadataRetrievalException
ResolutionGroup retrieve(Artifact artifact,
ArtifactRepository localRepository,
List<ArtifactRepository> remoteRepositories)
throws ArtifactMetadataRetrievalException
ArtifactMetadataRetrievalException
List<ArtifactVersion> retrieveAvailableVersions(Artifact artifact,
ArtifactRepository localRepository,
List<ArtifactRepository> 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.
List<ArtifactVersion> retrieveAvailableVersionsFromDeploymentRepository(Artifact artifact,
ArtifactRepository localRepository,
ArtifactRepository remoteRepository)
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 repositorydeploymentRepository - remote repository
List $lt; ArtifactVersion >
ArtifactMetadataRetrievalException - in case of error while retrieving repository metadata from the repository.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||