Class AggregateDownloadLicensesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.license.AbstractLicensesXmlMojo
org.codehaus.mojo.license.AbstractDownloadLicensesMojo
org.codehaus.mojo.license.AggregateDownloadLicensesMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, MavenProjectDependenciesConfigurator
@Mojo(name="aggregate-download-licenses",
requiresDependencyResolution=TEST,
defaultPhase=PACKAGE,
aggregator=true,
threadSafe=true)
public class AggregateDownloadLicensesMojo
extends AbstractDownloadLicensesMojo
Download the license files of all aggregated dependencies of the current project, and generate a summary file
containing a list of all dependencies and their licenses.
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.- Since:
- 1.10
- Author:
- Tony Chemit - dev@tchemit.fr
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractDownloadLicensesMojo
AbstractDownloadLicensesMojo.ErrorRemedy, AbstractDownloadLicensesMojo.OrderBy -
Field Summary
Fields inherited from class AbstractDownloadLicensesMojo
errorRemedy, licenseNameUrlOverrides, licensesCalcOutputFile, licensesConfigFile, licensesExcelOutputFile, licensesOutputDirectory, licenseUrlFileNames, licenseUrlFileNameSanitizers, licenseUrlReplacements, organizeLicensesByDependencies, project, remoteRepositories, useDefaultUrlReplacementsFields inherited from class AbstractLicensesXmlMojo
licensedArtifactResolver, licensesOutputFile, licensesOutputFileEol, proxiesFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsConstructorDescriptionAggregateDownloadLicensesMojo(LicensedArtifactResolver licensedArtifactResolver, org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter) -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<String, LicensedArtifact> protected booleanisSkip()Methods inherited from class AbstractDownloadLicensesMojo
execute, getArtifactFilters, getAutodetectEolFiles, getProject, isExcludeTransitiveDependencies, isIncludeTransitiveDependencies, isVerbose, licenseClassifierMethods inherited from class AbstractLicensesXmlMojo
getEncoding, writeLicenseSummaryMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AggregateDownloadLicensesMojo
@Inject public AggregateDownloadLicensesMojo(LicensedArtifactResolver licensedArtifactResolver, org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter)
-
-
Method Details
-
isSkip
protected boolean isSkip()- Specified by:
isSkipin classAbstractDownloadLicensesMojo
-
getDependencies
- Specified by:
getDependenciesin classAbstractDownloadLicensesMojo
-