public interface ArtifactMetadataSource
| Modifier and Type | Method and Description |
|---|---|
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) |
ResolutionGroup |
retrieve(MetadataResolutionRequest request) |
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)
Get a list of available versions for an artifact in the remote repository
|
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)
Get a list of available versions for an artifact in the remote deployment repository.
|
ResolutionGroup retrieve(MetadataResolutionRequest request) throws ArtifactMetadataRetrievalException
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
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 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.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 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 repositoryremoteRepository - remote repositoryList $lt; ArtifactVersion >ArtifactMetadataRetrievalException - in case of error while retrieving repository metadata from the repository.