org.apache.maven.project.artifact
Class MavenMetadataSource

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by 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 644411 2008-04-03 17:15:48Z jdcasey $
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
 
Constructor Summary
MavenMetadataSource()
           
 
Method Summary
static java.util.Set createArtifacts(ArtifactFactory artifactFactory, java.util.List dependencies, java.lang.String inheritedScope, ArtifactFilter dependencyFilter, MavenProject project)
           
 ResolutionGroup retrieve(Artifact artifact, ArtifactRepository localRepository, java.util.List remoteRepositories)
          Retrieve the metadata for the project from the repository.
 java.util.List retrieveAvailableVersions(Artifact artifact, 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
 

Field Detail

ROLE_HINT

public static final java.lang.String ROLE_HINT
See Also:
Constant Field Values
Constructor Detail

MavenMetadataSource

public MavenMetadataSource()
Method Detail

retrieve

public ResolutionGroup retrieve(Artifact artifact,
                                ArtifactRepository localRepository,
                                java.util.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 java.util.Set createArtifacts(ArtifactFactory artifactFactory,
                                            java.util.List dependencies,
                                            java.lang.String inheritedScope,
                                            ArtifactFilter dependencyFilter,
                                            MavenProject project)
                                     throws InvalidDependencyVersionException
Returns:
Set < Artifact >
Throws:
InvalidDependencyVersionException

retrieveAvailableVersions

public java.util.List retrieveAvailableVersions(Artifact artifact,
                                                ArtifactRepository localRepository,
                                                java.util.List remoteRepositories)
                                         throws ArtifactMetadataRetrievalException
Specified by:
retrieveAvailableVersions in interface ArtifactMetadataSource
Throws:
ArtifactMetadataRetrievalException


Copyright © 2001-2008 The Apache Software Foundation. All Rights Reserved.