Class LicenseMatchers

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

public class LicenseMatchers extends Object
A collection of LicenseMatchers.DependencyMatchers to match and replace licenses in ProjectLicenseInfo instances.
Since:
1.18
Author:
Peter Palaga
  • Method Details

    • builder

      public static LicenseMatchers.Builder builder()
      Returns:
      a new LicenseMatchers.Builder
    • load

      public static LicenseMatchers load(File licenseMatchersFile) throws org.apache.maven.plugin.MojoExecutionException
      Parameters:
      licenseMatchersFile -
      Returns:
      new LicenseMatchers configured from the given licenseMatchersFile
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • replaceMatches

      public void replaceMatches(ProjectLicenseInfo dependency)
      Replace matching licenses in the given dependency
      Parameters:
      dependency -