Class LicensedArtifactResolver

java.lang.Object
org.codehaus.mojo.license.download.LicensedArtifactResolver

@Named @Singleton public class LicensedArtifactResolver 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

    • LicensedArtifactResolver

      public LicensedArtifactResolver()
  • Method Details

    • loadProjectDependencies

      public void loadProjectDependencies(ResolvedProjectDependencies artifacts, MavenProjectDependenciesConfigurator configuration, List<org.apache.maven.artifact.repository.ArtifactRepository> remoteRepositories, Map<String,LicensedArtifact> result, boolean extendedInfo, List<String> licenseMerges)
      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 - Dependencies
      configuration - the configuration
      remoteRepositories - remote repositories used to resolve dependencies
      result - Map with Key/Value = PluginID/LicensedArtifact
      licenseMerges - List of license names to merge.
      See Also: