public class ArtifactMetadataSourceStub extends Object implements ArtifactMetadataSource
Constructor and Description |
---|
ArtifactMetadataSourceStub()
Creates a new artifact metadata source stub.
|
Modifier and Type | Method and Description |
---|---|
void |
addArtifactMetadata(Artifact artifact,
Set<Artifact> dependencyArtifacts)
Adds the specified dependency artifacts for the specified artifact to this artifact metadata source stub.
|
void |
addAvailableVersions(Artifact artifact,
List<org.apache.maven.artifact.versioning.ArtifactVersion> versions)
Adds versions for the specified artifact to this artifact metadata source stub.
|
ResolutionGroup |
retrieve(Artifact artifact,
ArtifactRepository localRepository,
List remoteRepositories) |
List |
retrieveAvailableVersions(Artifact artifact,
ArtifactRepository localRepository,
List remoteRepositories) |
Artifact |
retrieveRelocatedArtifact(Artifact artifact,
ArtifactRepository localRepository,
List remoteRepositories) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
retrieve, retrieveAvailableVersions, retrieveAvailableVersionsFromDeploymentRepository
public ArtifactMetadataSourceStub()
public ResolutionGroup retrieve(Artifact artifact, ArtifactRepository localRepository, List remoteRepositories) throws ArtifactMetadataRetrievalException
retrieve
in interface ArtifactMetadataSource
ArtifactMetadataRetrievalException
public List retrieveAvailableVersions(Artifact artifact, ArtifactRepository localRepository, List remoteRepositories) throws ArtifactMetadataRetrievalException
retrieveAvailableVersions
in interface ArtifactMetadataSource
ArtifactMetadataRetrievalException
public void addArtifactMetadata(Artifact artifact, Set<Artifact> dependencyArtifacts)
artifact
- the artifact to add metadata todependencyArtifacts
- the set of artifacts to register as dependencies of the specified artifactpublic void addAvailableVersions(Artifact artifact, List<org.apache.maven.artifact.versioning.ArtifactVersion> versions)
artifact
- the artifact to add metadata toversions
- the list of versions to register as available for the specified artifactpublic Artifact retrieveRelocatedArtifact(Artifact artifact, ArtifactRepository localRepository, List remoteRepositories) throws ArtifactMetadataRetrievalException
Copyright © 2002–2014 The Apache Software Foundation. All rights reserved.