Package org.codehaus.mojo.license
Class LicenseListMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.license.AbstractLicenseMojo
org.codehaus.mojo.license.LicenseListMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="license-list",
requiresProject=false,
requiresDirectInvocation=true)
public class LicenseListMojo
extends AbstractLicenseMojo
Display all available licenses.
- Since:
- 1.0
- Author:
- tchemit dev@tchemit.fr
-
Field Summary
Fields inherited from class org.codehaus.mojo.license.AbstractLicenseMojo
projectHelperFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.codehaus.mojo.license.AbstractLicenseMojo
acceptPackaging, addResourceDir, afterExecute, checkEncoding, checkPackaging, execute, getEncoding, getProject, hasClassPath, isVerbose, rejectPackaging, setEncoding, setVerbose, shouldSkipMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
LicenseListMojo
@Inject public LicenseListMojo(org.apache.maven.project.MavenProjectHelper projectHelper)
-
-
Method Details
-
isSkip
public boolean isSkip()When is sets totrue, will skip execution. This will take effect in at the very begin of theAbstractLicenseMojo.execute()before any initialisation of goal.- Specified by:
isSkipin classAbstractLicenseMojo- Returns:
trueif goal will not be executed
-
init
Method to initialize the mojo before doing any concrete actions. Note: The method is invoked before theAbstractLicenseMojo.doAction()method.- Specified by:
initin classAbstractLicenseMojo- Throws:
Exception- if any
-
doAction
public void doAction() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionDo plugin action. The methodAbstractLicenseMojo.execute()invoke this method only and only if :AbstractLicenseMojo.checkPackaging()returnstrue.- method
AbstractLicenseMojo.init()returnstrue.
- Specified by:
doActionin classAbstractLicenseMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-