@Mojo(name="aggregate-download-licenses",
requiresDependencyResolution=TEST,
defaultPhase=PACKAGE,
aggregator=true)
public class AggregateDownloadLicensesMojo
extends AbstractDownloadLicensesMojo
The license files will be downloaded to AbstractDownloadLicensesMojo.licensesOutputDirectory to be included
in the final packaging of the project if desired. The licenses are downloaded from the url field of the dependency
POM.
If the license information (license name and license URL) is missing or otherwise broken in a dependency POM, this mojo offers several fallback options:
Created on 23/05/16.AbstractDownloadLicensesMojo.ErrorRemedyerrorRemedy, licensesConfigFile, licensesOutputDirectory, licenseUrlFileNames, licenseUrlFileNameSanitizers, licenseUrlReplacements, localRepository, organizeLicensesByDependencies, project, remoteRepositories, useDefaultUrlReplacementsdependenciesTool, licensesOutputFile, licensesOutputFileEol| Constructor and Description |
|---|
AggregateDownloadLicensesMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,LicensedArtifact> |
getDependencies() |
protected boolean |
isSkip() |
execute, getArtifactFilters, getAutodetectEolFiles, getProject, isExcludeTransitiveDependencies, isIncludeTransitiveDependencies, isVerbosegetEncoding, writeLicenseSummaryprotected boolean isSkip()
isSkip in class AbstractDownloadLicensesMojoprotected Map<String,LicensedArtifact> getDependencies()
getDependencies in class AbstractDownloadLicensesMojoCopyright © 2010–2019 MojoHaus. All rights reserved.