com.cloudbees.maven.license
Class ProcessMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.cloudbees.maven.license.ProcessMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class ProcessMojo
extends org.apache.maven.plugin.AbstractMojo

Process license information.


Field Summary
 org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
           
 boolean attach
          If true, attach the generated XML/HTML as artifacts (to be installed/deployed to Maven repositories.)
 boolean disableCheck
          Forbidden switch to disable and bypass all the checks.
 File generateLicenseHtml
          If true, generate "licenses.html" as the visualization of license.xml
 File generateLicenseXml
          If true, generate "licenses.xml" that captures all the dependencies and its licenses.
 String inlineScript
          Specifies completion/generation/filtering script inline.
 org.apache.maven.artifact.repository.ArtifactRepository localRepository
           
 org.apache.maven.project.MavenProject project
          The maven project.
 org.apache.maven.project.MavenProjectBuilder projectBuilder
           
 org.apache.maven.project.MavenProjectHelper projectHelper
           
 boolean requireCompleteLicenseInfo
          If true, require all the dependencies to have license information after running completion scripts, or fail the build.
 File script
          Specifies completion/generation/filtering scripts.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ProcessMojo()
           
 
Method Summary
 void execute()
           
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

projectHelper

public org.apache.maven.project.MavenProjectHelper projectHelper

project

public org.apache.maven.project.MavenProject project
The maven project.


projectBuilder

public org.apache.maven.project.MavenProjectBuilder projectBuilder

artifactFactory

public org.apache.maven.artifact.factory.ArtifactFactory artifactFactory

localRepository

public org.apache.maven.artifact.repository.ArtifactRepository localRepository

script

public File 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

public String inlineScript
Specifies completion/generation/filtering script inline.


requireCompleteLicenseInfo

public boolean requireCompleteLicenseInfo
If true, require all the dependencies to have license information after running completion scripts, or fail the build.


generateLicenseXml

public File generateLicenseXml
If true, generate "licenses.xml" that captures all the dependencies and its licenses.


generateLicenseHtml

public File generateLicenseHtml
If true, generate "licenses.html" as the visualization of license.xml


disableCheck

public boolean disableCheck
Forbidden switch to disable and bypass all the checks.


attach

public boolean attach
If true, attach the generated XML/HTML as artifacts (to be installed/deployed to Maven repositories.)

Constructor Detail

ProcessMojo

public ProcessMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2011. All Rights Reserved.