org.codehaus.mojo.license
Class DefaultDependenciesTool

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.codehaus.mojo.license.DefaultDependenciesTool
All Implemented Interfaces:
DependenciesTool, org.codehaus.plexus.logging.LogEnabled

public class DefaultDependenciesTool
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements DependenciesTool

Default implementation of the DependenciesTool.

Since:
1.0
Version:
$Id: DefaultDependenciesTool.java 14411 2011-08-10 22:09:34Z tchemit $
Author:
tchemit

Field Summary
static String INVALID_PATTERN_MESSAGE
           
 
Constructor Summary
DefaultDependenciesTool()
           
 
Method Summary
protected  boolean isExcludable(org.apache.maven.artifact.Artifact project, Pattern excludedGroupPattern, Pattern excludedArtifactPattern)
           
protected  boolean isIncludable(org.apache.maven.artifact.Artifact project, Pattern includedGroupPattern, Pattern includedArtifactPattern)
           
 SortedMap<String,org.apache.maven.project.MavenProject> loadProjectDependencies(org.apache.maven.project.MavenProject project, MavenProjectDependenciesConfigurator configuration, org.apache.maven.artifact.repository.ArtifactRepository localRepository, List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories, SortedMap<String,org.apache.maven.project.MavenProject> cache)
          For a given project, obtain the universe of his dependencies after applying transitivity and filtering rules given in the configuration object.
 
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

INVALID_PATTERN_MESSAGE

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

DefaultDependenciesTool

public DefaultDependenciesTool()
Method Detail

loadProjectDependencies

public SortedMap<String,org.apache.maven.project.MavenProject> loadProjectDependencies(org.apache.maven.project.MavenProject project,
                                                                                       MavenProjectDependenciesConfigurator configuration,
                                                                                       org.apache.maven.artifact.repository.ArtifactRepository localRepository,
                                                                                       List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories,
                                                                                       SortedMap<String,org.apache.maven.project.MavenProject> cache)
For a given project, obtain the universe of his dependencies after applying transitivity and filtering rules given in the configuration object.

Result is given in a map where keys are unique artifact id

Specified by:
loadProjectDependencies in interface DependenciesTool
Parameters:
project - the project to scann
configuration - the configuration
localRepository - local repository used to resolv dependencies
remoteRepositories - remote repositories used to resolv dependencies
cache - a optional cache where to keep resolved dependencies
Returns:
the map of resolved dependencies indexed by their unique id.
See Also:
MavenProjectDependenciesConfigurator

isIncludable

protected boolean isIncludable(org.apache.maven.artifact.Artifact project,
                               Pattern includedGroupPattern,
                               Pattern includedArtifactPattern)

isExcludable

protected boolean isExcludable(org.apache.maven.artifact.Artifact project,
                               Pattern excludedGroupPattern,
                               Pattern excludedArtifactPattern)


Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.