Interface ArtifactMetadataSource
- All Known Subinterfaces:
- ArtifactMetadataSource
- All Known Implementing Classes:
- DefaultMetadataSource,- MavenMetadataSource
Deprecated.
Provides some metadata operations, like querying the remote repository for a list of versions available for an
 artifact.
- 
Method SummaryModifier and TypeMethodDescriptionretrieve(Artifact artifact, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories) Deprecated.retrieve(MetadataResolutionRequest request) Deprecated.retrieveAvailableVersions(Artifact artifact, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories) Deprecated.Get a list of available versions for an artifact in the remote repositoryretrieveAvailableVersionsFromDeploymentRepository(Artifact artifact, ArtifactRepository localRepository, ArtifactRepository remoteRepository) Deprecated.Get a list of available versions for an artifact in the remote deployment repository.
- 
Method Details- 
retrieveResolutionGroup retrieve(MetadataResolutionRequest request) throws ArtifactMetadataRetrievalException Deprecated.
- 
retrieveResolutionGroup retrieve(Artifact artifact, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories) throws ArtifactMetadataRetrievalException Deprecated.
- 
retrieveAvailableVersionsList<ArtifactVersion> retrieveAvailableVersions(Artifact artifact, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories) throws ArtifactMetadataRetrievalException Deprecated.Get a list of available versions for an artifact in the remote repository- Parameters:
- artifact- artifact we are interested in. Only- groupidand- artifactIdare needed, for instance the following code will work- artifactFactory.createProjectArtifact( "org.apache.maven", "maven", "" )
- localRepository- local repository
- remoteRepositories- remote repositories,- List$lt;- ArtifactRepository>
- Returns:
- List$lt;- ArtifactVersion>
- Throws:
- ArtifactMetadataRetrievalException- in case of error while retrieving repository metadata from the repository.
 
- 
retrieveAvailableVersionsFromDeploymentRepositoryList<ArtifactVersion> retrieveAvailableVersionsFromDeploymentRepository(Artifact artifact, ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws ArtifactMetadataRetrievalException Deprecated.Get a list of available versions for an artifact in the remote deployment repository. This ignores any update policy checks and mirrors and always retrieves the latest information from the given repository.- Parameters:
- artifact- artifact we are interested in. Only- groupidand- artifactIdare needed, for instance the following code will work- artifactFactory.createProjectArtifact( "org.apache.maven", "maven", "" )
- localRepository- local repository
- remoteRepository- remote repository
- Returns:
- List$lt;- ArtifactVersion>
- Throws:
- ArtifactMetadataRetrievalException- in case of error while retrieving repository metadata from the repository.
 
 
-