org.apache.maven.project.artifact
Class MavenMetadataSource

java.lang.Object
  extended byorg.codehaus.plexus.logging.AbstractLogEnabled
      extended byorg.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 379524 2006-02-21 16:39:11Z jdcasey $
Author:
Jason van Zyl, Brett Porter

Nested Class Summary
 
Nested classes inherited from class org.apache.maven.artifact.metadata.ArtifactMetadataSource
 
Field Summary
static String ROLE_HINT
           
 
Fields inherited from interface org.apache.maven.artifact.metadata.ArtifactMetadataSource
ROLE
 
Constructor Summary
MavenMetadataSource()
           
 
Method Summary
static Set createArtifacts(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory, List dependencies, 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, List remoteRepositories)
          Retrieve the metadata for the project from the repository.
 List retrieveAvailableVersions(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository localRepository, 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
 
Methods inherited from interface org.apache.maven.artifact.metadata.ArtifactMetadataSource
 

Field Detail

ROLE_HINT

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

MavenMetadataSource

public MavenMetadataSource()
Method Detail

retrieve

public org.apache.maven.artifact.metadata.ResolutionGroup retrieve(org.apache.maven.artifact.Artifact artifact,
                                                                   org.apache.maven.artifact.repository.ArtifactRepository localRepository,
                                                                   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 Set createArtifacts(org.apache.maven.artifact.factory.ArtifactFactory artifactFactory,
                                  List dependencies,
                                  String inheritedScope,
                                  org.apache.maven.artifact.resolver.filter.ArtifactFilter dependencyFilter,
                                  MavenProject project)
                           throws InvalidDependencyVersionException
Throws:
InvalidDependencyVersionException

retrieveAvailableVersions

public List retrieveAvailableVersions(org.apache.maven.artifact.Artifact artifact,
                                      org.apache.maven.artifact.repository.ArtifactRepository localRepository,
                                      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-2001-2006 Apache Software Foundation. All Rights Reserved.