Interface ArtifactMetadataSource
-
- All Superinterfaces:
ArtifactMetadataSource
- All Known Implementing Classes:
DefaultMetadataSource,MavenMetadataSource
@Deprecated public interface ArtifactMetadataSource extends ArtifactMetadataSource
Deprecated.Provides some metadata operations, like querying the remote repository for a list of versions available for an artifact - deprecated
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ResolutionGroupretrieve(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository localRepository, java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)Deprecated.ResolutionGroupretrieve(MetadataResolutionRequest request)Deprecated.java.util.List<org.apache.maven.artifact.versioning.ArtifactVersion>retrieveAvailableVersions(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository localRepository, java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories)Deprecated.Get a list of available versions for an artifact in the remote repositoryjava.util.List<org.apache.maven.artifact.versioning.ArtifactVersion>retrieveAvailableVersions(MetadataResolutionRequest request)Deprecated.java.util.List<org.apache.maven.artifact.versioning.ArtifactVersion>retrieveAvailableVersionsFromDeploymentRepository(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository localRepository, org.apache.maven.artifact.repository.ArtifactRepository remoteRepository)Deprecated.Get a list of available versions for an artifact in the remote deployment repository.
-
-
-
Method Detail
-
retrieve
ResolutionGroup retrieve(MetadataResolutionRequest request) throws ArtifactMetadataRetrievalException
Deprecated.- Specified by:
retrievein interfaceArtifactMetadataSource- Throws:
ArtifactMetadataRetrievalException
-
retrieve
ResolutionGroup retrieve(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository localRepository, java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories) throws ArtifactMetadataRetrievalException
Deprecated.- Specified by:
retrievein interfaceArtifactMetadataSource- Throws:
ArtifactMetadataRetrievalException
-
retrieveAvailableVersions
java.util.List<org.apache.maven.artifact.versioning.ArtifactVersion> retrieveAvailableVersions(MetadataResolutionRequest request) throws ArtifactMetadataRetrievalException
Deprecated.
-
retrieveAvailableVersions
java.util.List<org.apache.maven.artifact.versioning.ArtifactVersion> retrieveAvailableVersions(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository localRepository, java.util.List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories) throws ArtifactMetadataRetrievalExceptionDeprecated.Description copied from interface:ArtifactMetadataSourceGet a list of available versions for an artifact in the remote repository- Specified by:
retrieveAvailableVersionsin interfaceArtifactMetadataSource- 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.ArtifactMetadataRetrievalException
-
retrieveAvailableVersionsFromDeploymentRepository
java.util.List<org.apache.maven.artifact.versioning.ArtifactVersion> retrieveAvailableVersionsFromDeploymentRepository(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository localRepository, org.apache.maven.artifact.repository.ArtifactRepository remoteRepository) throws ArtifactMetadataRetrievalExceptionDeprecated.Description copied from interface:ArtifactMetadataSourceGet 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.- Specified by:
retrieveAvailableVersionsFromDeploymentRepositoryin interfaceArtifactMetadataSource- Parameters:
artifact- artifact we are interested in. OnlygroupidandartifactIdare needed, for instance the following code will workartifactFactory.createProjectArtifact( "org.apache.maven", "maven", "" )localRepository- local repositoryremoteRepository- remote repository- Returns:
List$lt;ArtifactVersion>- Throws:
ArtifactMetadataRetrievalException- in case of error while retrieving repository metadata from the repository.ArtifactMetadataRetrievalException
-
-