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.AbstractMojoProcess license information.
-
-
Field Summary
Fields Modifier and Type Field Description org.apache.maven.artifact.factory.ArtifactFactoryartifactFactorybooleanattachIf true, attach the generated XML/HTML as artifacts (to be installed/deployed to Maven repositories.)booleandisableCheckForbidden switch to disable and bypass all the checks.FilegenerateLicenseHtmlIf true, generate "licenses.html" as the visualization oflicense.xmlFilegenerateLicenseXmlIf true, generate "licenses.xml" that captures all the dependencies and its licenses.StringinlineScriptSpecifies completion/generation/filtering script inline.org.apache.maven.project.MavenProjectprojectThe maven project.org.apache.maven.project.ProjectBuilderprojectBuilderorg.apache.maven.project.MavenProjectHelperprojectHelperbooleanrequireCompleteLicenseInfoIf true, require all the dependencies to have license information after running completion scripts, or fail the build.FilescriptSpecifies completion/generation/filtering scripts.org.apache.maven.execution.MavenSessionsession
-
Constructor Summary
Constructors Constructor Description ProcessMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()
-
-
-
Field Detail
-
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
@Parameter(defaultValue="${license.script}") public File scriptSpecifies 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
@Parameter public String inlineScript
Specifies completion/generation/filtering script inline.
-
requireCompleteLicenseInfo
@Parameter public boolean requireCompleteLicenseInfo
If true, require all the dependencies to have license information after running completion scripts, or fail the build.
-
generateLicenseXml
@Parameter(defaultValue="${license.generateLicenseXml}") public File generateLicenseXmlIf true, generate "licenses.xml" that captures all the dependencies and its licenses.
-
generateLicenseHtml
@Parameter(defaultValue="${license.generateLicenseHtml}") public File generateLicenseHtmlIf 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.)
-
-