Package com.cloudbees.maven.license
Class ProcessMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.cloudbees.maven.license.ProcessMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="process",
requiresDependencyResolution=RUNTIME)
public class ProcessMojo
extends org.apache.maven.plugin.AbstractMojo
Process license information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.apache.maven.artifact.factory.ArtifactFactorybooleanIf true, attach the generated XML/HTML as artifacts (to be installed/deployed to Maven repositories.)booleanForbidden switch to disable and bypass all the checks.If true, generate "licenses.html" as the visualization oflicense.xmlIf true, generate "licenses.xml" that captures all the dependencies and its licenses.Specifies completion/generation/filtering script inline.org.apache.maven.project.MavenProjectThe maven project.org.apache.maven.project.ProjectBuilderorg.apache.maven.project.MavenProjectHelperbooleanIf true, require all the dependencies to have license information after running completion scripts, or fail the build.Specifies completion/generation/filtering scripts.org.apache.maven.execution.MavenSessionFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
projectHelper
@Component public org.apache.maven.project.MavenProjectHelper projectHelper -
project
@Parameter(defaultValue="${project}", required=true, readonly=true) public org.apache.maven.project.MavenProject projectThe maven project. -
session
@Parameter(defaultValue="${session}", required=true, readonly=true) public org.apache.maven.execution.MavenSession session -
projectBuilder
@Component public org.apache.maven.project.ProjectBuilder projectBuilder -
artifactFactory
@Component public org.apache.maven.artifact.factory.ArtifactFactory artifactFactory -
script
Specifies completion/generation/filtering scripts.This can be either a file or a directory. If it's a directory all the files in it are assumed to be completer scripts.
-
inlineScript
Specifies completion/generation/filtering script inline. -
requireCompleteLicenseInfo
@Parameter public boolean requireCompleteLicenseInfoIf true, require all the dependencies to have license information after running completion scripts, or fail the build. -
generateLicenseXml
If true, generate "licenses.xml" that captures all the dependencies and its licenses. -
generateLicenseHtml
If true, generate "licenses.html" as the visualization oflicense.xml -
disableCheck
@Parameter(defaultValue="${license.disableCheck}") public boolean disableCheckForbidden switch to disable and bypass all the checks. -
attach
@Parameter(defaultValue="${license.attach}") public boolean attachIf true, attach the generated XML/HTML as artifacts (to be installed/deployed to Maven repositories.)
-
-
Constructor Details
-
ProcessMojo
public ProcessMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-