Class LicenseMatchers
java.lang.Object
org.codehaus.mojo.license.download.LicenseMatchers
A collection of
LicenseMatchers.DependencyMatcher
s to match and replace licenses in ProjectLicenseInfo
instances.- Since:
- 1.18
- Author:
- Peter Palaga
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LicenseMatchers.Builder
builder()
static LicenseMatchers
void
replaceMatches
(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
LicenseMatchers
configured from the givenlicenseMatchersFile
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
replaceMatches
Replace matching licenses in the givendependency
- Parameters:
dependency
-
-