@Mojo(name="copyright",
defaultPhase=PREPARE_PACKAGE)
public class CopyrightMojo
extends AbstractDependencyMojo<Copyright>
Copyright info is build based on a copyrightPatterns parameter and gathered from a pom file if no copyrightPatterns specified.
inceptionYear (if present), current
year and holders:
user.name system property is usedmainLicence parameter is used if specified, otherwise first of project licenses is used.
If no licenses present, project is marked as a public domain.
If dependencyCopyrights parameter is set to true, all dependencies filtered by
traversalExclusions and packageExclusions are grouped by their copyright and licenses
and included as a separate file. Copyright and license strings are constructed the same way as for this project
AbstractDependencyMojo.DependencyArtifactpackageName, project, session, stageDir| Constructor and Description |
|---|
CopyrightMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected void |
processDependency(AbstractDependencyMojo.DependencyArtifact node,
Copyright copyright,
File dependencyDir,
boolean root) |
getDependencyDirectory, traverseDependenciespublic void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void processDependency(AbstractDependencyMojo.DependencyArtifact node, Copyright copyright, File dependencyDir, boolean root)
processDependency in class AbstractDependencyMojo<Copyright>Copyright © 2018. All rights reserved.