org.codehaus.mojo.license
Class DefaultDependenciesTool
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
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
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 |
INVALID_PATTERN_MESSAGE
public static final String INVALID_PATTERN_MESSAGE
- See Also:
- Constant Field Values
DefaultDependenciesTool
public DefaultDependenciesTool()
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 scannconfiguration
- the configurationlocalRepository
- local repository used to resolv dependenciesremoteRepositories
- remote repositories used to resolv dependenciescache
- 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-2012 The Kuali Foundation. All Rights Reserved.