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$
Author:
Jason van Zyl, Brett Porter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from interface org.apache.maven.artifact.metadata.ArtifactMetadataSource

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    retrieveAvailableVersions(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository localRepository, List remoteRepositories)
     
    org.apache.maven.artifact.Artifact
    retrieveRelocatedArtifact(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.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
  • Field Details

  • Constructor Details

    • MavenMetadataSource

      public MavenMetadataSource()
  • Method Details

    • retrieveRelocatedArtifact

      public org.apache.maven.artifact.Artifact retrieveRelocatedArtifact(org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository localRepository, List remoteRepositories) throws org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException
      Resolve all relocations in the POM for this artifact, and return the new artifact coordinate.
      Specified by:
      retrieveRelocatedArtifact in interface org.apache.maven.artifact.metadata.ArtifactMetadataSource
      Throws:
      org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException
    • 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
      Returns:
      Set < Artifact >
      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