org.apache.maven.project.artifact
Class MavenMetadataSource
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.project.artifact.MavenMetadataSource
- All Implemented Interfaces:
- ArtifactMetadataSource, org.codehaus.plexus.logging.LogEnabled
public class MavenMetadataSource
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements ArtifactMetadataSource
- Version:
- $Id: MavenMetadataSource.java 736547 2009-01-22 03:57:09Z jdcasey $
- Author:
- Jason van Zyl, Brett Porter
Method Summary |
static Set |
createArtifacts(ArtifactFactory artifactFactory,
List dependencies,
String inheritedScope,
ArtifactFilter dependencyFilter,
MavenProject project)
|
ResolutionGroup |
retrieve(Artifact artifact,
ArtifactRepository localRepository,
List remoteRepositories)
Retrieve the metadata for the project from the repository. |
List |
retrieveAvailableVersions(Artifact artifact,
ArtifactRepository localRepository,
List remoteRepositories)
|
Artifact |
retrieveRelocatedArtifact(Artifact artifact,
ArtifactRepository localRepository,
List remoteRepositories)
Resolve all relocations in the POM for this artifact, and return the new artifact coordinate. |
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROLE_HINT
public static final String ROLE_HINT
- See Also:
- Constant Field Values
MavenMetadataSource
public MavenMetadataSource()
retrieveRelocatedArtifact
public Artifact retrieveRelocatedArtifact(Artifact artifact,
ArtifactRepository localRepository,
List remoteRepositories)
throws ArtifactMetadataRetrievalException
- Resolve all relocations in the POM for this artifact, and return the new artifact coordinate.
- Specified by:
retrieveRelocatedArtifact
in interface ArtifactMetadataSource
- Throws:
ArtifactMetadataRetrievalException
retrieve
public ResolutionGroup retrieve(Artifact artifact,
ArtifactRepository localRepository,
List remoteRepositories)
throws ArtifactMetadataRetrievalException
- Retrieve the metadata for the project from the repository.
Uses the ProjectBuilder, to enable post-processing and inheritance calculation before retrieving the
associated artifacts.
- Specified by:
retrieve
in interface ArtifactMetadataSource
- Throws:
ArtifactMetadataRetrievalException
createArtifacts
public static Set createArtifacts(ArtifactFactory artifactFactory,
List dependencies,
String inheritedScope,
ArtifactFilter dependencyFilter,
MavenProject project)
throws InvalidDependencyVersionException
- Returns:
Set
< Artifact
>
- Throws:
InvalidDependencyVersionException
retrieveAvailableVersions
public List retrieveAvailableVersions(Artifact artifact,
ArtifactRepository localRepository,
List remoteRepositories)
throws ArtifactMetadataRetrievalException
- Specified by:
retrieveAvailableVersions
in interface ArtifactMetadataSource
- Throws:
ArtifactMetadataRetrievalException
Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.