Class LicenseMatchers
java.lang.Object
org.codehaus.mojo.license.download.LicenseMatchers
A collection of
LicenseMatchers.DependencyMatchers to match and replace licenses in ProjectLicenseInfo instances.- Since:
- 1.18
- Author:
- Peter Palaga
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic LicenseMatchers.Builderbuilder()static LicenseMatchersvoidreplaceMatches(ProjectLicenseInfo dependency) Replace matching licenses in the givendependency
-
Method Details
-
builder
- Returns:
- a new
LicenseMatchers.Builder
-
load
public static LicenseMatchers load(File licenseMatchersFile) throws org.apache.maven.plugin.MojoExecutionException - Parameters:
licenseMatchersFile-- Returns:
- new
LicenseMatchersconfigured from the givenlicenseMatchersFile - Throws:
org.apache.maven.plugin.MojoExecutionException
-
replaceMatches
Replace matching licenses in the givendependency- Parameters:
dependency-
-