Package org.codehaus.mojo.license.api
Class DependenciesTool
java.lang.Object
org.codehaus.mojo.license.api.DependenciesTool
A tool to deal with dependencies of a project.
- Since:
- 1.0
- Author:
- tchemit dev@tchemit.fr
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Message used when an invalid expression pattern is found. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadProjectDependencies
(ResolvedProjectDependencies artifacts, MavenProjectDependenciesConfigurator configuration, List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories, SortedMap<String, org.apache.maven.project.MavenProject> cache) For a givenproject
, obtain the universe of its dependencies after applying transitivity and filtering rules given in theconfiguration
object.
-
Field Details
-
INVALID_PATTERN_MESSAGE
Message used when an invalid expression pattern is found.- See Also:
-
-
Constructor Details
-
DependenciesTool
public DependenciesTool()
-
-
Method Details
-
loadProjectDependencies
public SortedMap<String,org.apache.maven.project.MavenProject> loadProjectDependencies(ResolvedProjectDependencies artifacts, MavenProjectDependenciesConfigurator configuration, List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories, SortedMap<String, org.apache.maven.project.MavenProject> cache) For a givenproject
, obtain the universe of its dependencies after applying transitivity and filtering rules given in theconfiguration
object. Result is given in a map where keys are unique artifact id- Parameters:
artifacts
- the project dependenciesconfiguration
- the configurationremoteRepositories
- remote repositories used to resolve dependenciescache
- a optional cache where to keep resolved dependencies- Returns:
- the map of resolved dependencies indexed by their unique id.
- See Also:
-