|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
org.nuiton.plugin.AbstractPlugin
org.nuiton.license.plugin.AbstractLicenseMojo
org.nuiton.license.plugin.AbstractAddThirdPartyMojo
org.nuiton.license.plugin.AddThirdPartyMojo
public class AddThirdPartyMojo
Le goal pour copier le fichier THIRD-PARTY.txt (contenant les licenses de toutes les dependances du projet) dans le classpath (et le generer s'il n'existe pas).
AddThirdPartyFileMojo).| 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 org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
Local Repository. |
protected org.apache.maven.project.MavenProjectBuilder |
mavenProjectBuilder
Maven Project Builder component. |
protected List<?> |
remoteRepositories
Remote repositories used for the project. |
| Fields inherited from class org.nuiton.license.plugin.AbstractAddThirdPartyMojo |
|---|
bundleThirdPartyPath, failIfWarning, force, generateBundle, groupByLicense, licenseMerges, missingFile, NO_DEPENDENCIES_MESSAGE, outputDirectory, thirdPartyFilename, useMissingFile |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AddThirdPartyMojo()
|
|
| Method Summary | |
|---|---|
protected org.apache.maven.project.MavenProject |
addArtifact(String id,
org.apache.maven.artifact.Artifact artifact)
|
protected boolean |
checkPackaging()
|
protected boolean |
checkSkip()
|
protected LicenseMap |
createLicenseMap()
|
protected org.nuiton.io.SortedProperties |
createUnsafeMapping()
|
protected void |
doAction()
|
boolean |
isDoGenerateMissing()
|
void |
setDoGenerateMissing(boolean doGenerateMissing)
|
protected void |
writeMissingFile()
|
| 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 |
|---|
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected List<?> remoteRepositories
protected org.apache.maven.project.MavenProjectBuilder mavenProjectBuilder
| Constructor Detail |
|---|
public AddThirdPartyMojo()
| Method Detail |
|---|
protected boolean checkPackaging()
checkPackaging in class org.nuiton.plugin.AbstractPlugin
protected LicenseMap createLicenseMap()
throws org.apache.maven.project.ProjectBuildingException
createLicenseMap in class AbstractAddThirdPartyMojoorg.apache.maven.project.ProjectBuildingException
protected org.nuiton.io.SortedProperties createUnsafeMapping()
throws org.apache.maven.project.ProjectBuildingException,
IOException
createUnsafeMapping in class AbstractAddThirdPartyMojoorg.apache.maven.project.ProjectBuildingException
IOExceptionprotected boolean checkSkip()
checkSkip in class org.nuiton.plugin.AbstractPlugin
protected void doAction()
throws Exception
doAction in class org.nuiton.plugin.AbstractPluginException
protected void writeMissingFile()
throws IOException
IOException
protected org.apache.maven.project.MavenProject addArtifact(String id,
org.apache.maven.artifact.Artifact artifact)
throws org.apache.maven.project.ProjectBuildingException
org.apache.maven.project.ProjectBuildingExceptionpublic boolean isDoGenerateMissing()
public void setDoGenerateMissing(boolean doGenerateMissing)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||