@Mojo(name="download-licenses",
requiresDependencyResolution=TEST,
defaultPhase=PACKAGE)
public class DownloadLicensesMojo
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:
AbstractDownloadLicensesMojo.ErrorRemedy| Modifier and Type | Field and Description |
|---|---|
protected boolean |
skipDownloadLicenses
A flag to skip the goal.
|
errorRemedy, licensesConfigFile, licensesOutputDirectory, licenseUrlFileNames, licenseUrlFileNameSanitizers, licenseUrlReplacements, localRepository, organizeLicensesByDependencies, project, remoteRepositories, useDefaultUrlReplacementsdependenciesTool, licensesOutputFile, licensesOutputFileEol| Constructor and Description |
|---|
DownloadLicensesMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,LicensedArtifact> |
getDependencies() |
protected boolean |
isSkip() |
execute, getArtifactFilters, getAutodetectEolFiles, getProject, isExcludeTransitiveDependencies, isIncludeTransitiveDependencies, isVerbosegetEncoding, writeLicenseSummary@Parameter(property="license.skipDownloadLicenses",
defaultValue="false")
protected boolean skipDownloadLicenses
protected boolean isSkip()
isSkip in class AbstractDownloadLicensesMojoprotected Map<String,LicensedArtifact> getDependencies()
getDependencies in class AbstractDownloadLicensesMojoCopyright © 2010–2019 MojoHaus. All rights reserved.