org.nuiton.license.plugin
Class AggregatorAddThirdPartyMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.nuiton.plugin.AbstractPlugin
          extended by org.nuiton.license.plugin.AbstractLicenseMojo
              extended by org.nuiton.license.plugin.AbstractAddThirdPartyMojo
                  extended by org.nuiton.license.plugin.AggregatorAddThirdPartyMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.nuiton.plugin.Plugin, org.nuiton.plugin.PluginWithEncoding

public class AggregatorAddThirdPartyMojo
extends AbstractAddThirdPartyMojo

This aggregator goal (will be executed only once and only on pom projects) executed the add-third-party on all his modules (in a parellel build cycle) then aggreates all the third-party files in final one in the pom project.

Since:
2.3
Author:
tchemit
Aggregates the Maven project and its child modules.
Is defined to be executed in:
goal:
add-third-party
Is defined by the goal name:
aggregate-add-third-party
Is bound to the specified phase of the standard build lifecycle:
generate-resources
Requires a Maven project to run:
true

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin
org.nuiton.plugin.Plugin.InitState, org.nuiton.plugin.Plugin.Packaging
 
Field Summary
protected  List<?> reactorProjects
          The projects in the reactor.
 
Fields inherited from class org.nuiton.license.plugin.AbstractAddThirdPartyMojo
bundleThirdPartyPath, excludedArtifacts, excludedGroups, failIfWarning, force, generateBundle, groupByLicense, includedArtifacts, includedGroups, licenseMerges, missingFile, NO_DEPENDENCIES_MESSAGE, outputDirectory, thirdPartyFilename, useMissingFile
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AggregatorAddThirdPartyMojo()
           
 
Method Summary
protected  boolean checkPackaging()
           
protected  boolean checkSkip()
           
protected  LicenseMap createLicenseMap()
           
protected  org.nuiton.io.SortedProperties createUnsafeMapping()
           
protected  void doAction()
           
 
Methods inherited from class org.nuiton.license.plugin.AbstractAddThirdPartyMojo
checkUnsafeDependencies, getArtifactCache, getArtifactId, getArtifactName, getBundleThirdPartyPath, getEncoding, getExcludedArtifacts, getExcludedGroups, getIncludedArtifacts, getIncludedGroups, getLicenseMap, getMissingFile, getOutputDirectory, getThirdPartyFile, getThirdPartyFilename, getUnsafeDependencies, getUnsafeMappings, init, isDoGenerate, isDoGenerateBundle, isFailIfWarning, isForce, isGenerateBundle, isGroupByLicense, isUseMissingFile, setBundleThirdPartyPath, setDoGenerate, setDoGenerateBundle, setEncoding, setExcludedArtifacts, setExcludedGroups, setFailIfWarning, setForce, setGenerateBundle, setGroupByLicense, setIncludedArtifacts, setIncludedGroups, setMissingFile, setOutputDirectory, setThirdPartyFile, setThirdPartyFilename, setUseMissingFile, writeThirdPartyFile
 
Methods inherited from class org.nuiton.license.plugin.AbstractLicenseMojo
createLicenseStore, getBuildTimestamp, getProject, getSession, isVerbose, setProject, setSession, setVerbose
 
Methods inherited from class org.nuiton.plugin.AbstractPlugin
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addUrlToUrlsList, afterExecute, backupFile, checkEncoding, checkResource, checkRunOnceDone, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, execute, getBackupFile, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getRootProject, getTemplate, hasClassPath, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFile
 
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
 
Methods inherited from interface org.nuiton.plugin.Plugin
getProject, isVerbose, setProject, setVerbose
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute, getLog, setLog
 

Field Detail

reactorProjects

protected List<?> reactorProjects
The projects in the reactor.

Since:
2.3
Is defined by:
expression:
${reactorProjects}
Is readonly.
Is required.
Constructor Detail

AggregatorAddThirdPartyMojo

public AggregatorAddThirdPartyMojo()
Method Detail

checkPackaging

protected boolean checkPackaging()
Overrides:
checkPackaging in class org.nuiton.plugin.AbstractPlugin

checkSkip

protected boolean checkSkip()
Overrides:
checkSkip in class org.nuiton.plugin.AbstractPlugin

createLicenseMap

protected LicenseMap createLicenseMap()
                               throws org.apache.maven.project.ProjectBuildingException
Specified by:
createLicenseMap in class AbstractAddThirdPartyMojo
Throws:
org.apache.maven.project.ProjectBuildingException

createUnsafeMapping

protected org.nuiton.io.SortedProperties createUnsafeMapping()
                                                      throws org.apache.maven.project.ProjectBuildingException,
                                                             IOException
Specified by:
createUnsafeMapping in class AbstractAddThirdPartyMojo
Throws:
org.apache.maven.project.ProjectBuildingException
IOException

doAction

protected void doAction()
                 throws Exception
Specified by:
doAction in class org.nuiton.plugin.AbstractPlugin
Throws:
Exception


Copyright © 2008-2010 CodeLutin. All Rights Reserved.