Class DependenciesTool

java.lang.Object
org.codehaus.mojo.license.api.DependenciesTool

@Named @Singleton public class DependenciesTool extends Object
A tool to deal with dependencies of a project.
Since:
1.0
Author:
tchemit dev@tchemit.fr
  • Field Details

    • INVALID_PATTERN_MESSAGE

      public static final String 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 given project, obtain the universe of its dependencies after applying transitivity and filtering rules given in the configuration object. Result is given in a map where keys are unique artifact id
      Parameters:
      artifacts - the project dependencies
      configuration - the configuration
      remoteRepositories - remote repositories used to resolve dependencies
      cache - a optional cache where to keep resolved dependencies
      Returns:
      the map of resolved dependencies indexed by their unique id.
      See Also: