org.apache.maven.project.artifact
Class MavenMetadataSource
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.project.artifact.MavenMetadataSource
- All Implemented Interfaces:
- org.apache.maven.artifact.metadata.ArtifactMetadataSource, org.codehaus.plexus.logging.LogEnabled
public class MavenMetadataSource
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements org.apache.maven.artifact.metadata.ArtifactMetadataSource
- Version:
- $Id: MavenMetadataSource.java 521826 2007-03-23 17:50:03Z carlos $
- Author:
- Jason van Zyl, Brett Porter
Field Summary |
static java.lang.String |
ROLE_HINT
|
Fields inherited from interface org.apache.maven.artifact.metadata.ArtifactMetadataSource |
ROLE |
Method Summary |
static java.util.Set |
createArtifacts(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory,
java.util.List dependencies,
java.lang.String inheritedScope,
org.apache.maven.artifact.resolver.filter.ArtifactFilter dependencyFilter,
MavenProject project)
|
org.apache.maven.artifact.metadata.ResolutionGroup |
retrieve(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
java.util.List remoteRepositories)
Retrieve the metadata for the project from the repository. |
java.util.List |
retrieveAvailableVersions(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
java.util.List remoteRepositories)
|
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 java.lang.String ROLE_HINT
- See Also:
- Constant Field Values
MavenMetadataSource
public MavenMetadataSource()
retrieve
public org.apache.maven.artifact.metadata.ResolutionGroup retrieve(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
java.util.List remoteRepositories)
throws org.apache.maven.artifact.metadata.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 org.apache.maven.artifact.metadata.ArtifactMetadataSource
- Throws:
org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException
createArtifacts
public static java.util.Set createArtifacts(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory,
java.util.List dependencies,
java.lang.String inheritedScope,
org.apache.maven.artifact.resolver.filter.ArtifactFilter dependencyFilter,
MavenProject project)
throws InvalidDependencyVersionException
- Returns:
Set
< Artifact
>
- Throws:
InvalidDependencyVersionException
retrieveAvailableVersions
public java.util.List retrieveAvailableVersions(org.apache.maven.artifact.Artifact artifact,
org.apache.maven.artifact.repository.ArtifactRepository localRepository,
java.util.List remoteRepositories)
throws org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException
- Specified by:
retrieveAvailableVersions
in interface org.apache.maven.artifact.metadata.ArtifactMetadataSource
- Throws:
org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.