|
||||||||||
| 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.ThirdPartyPlugin
@Deprecated public class ThirdPartyPlugin
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).
| Nested Class Summary | |
|---|---|
protected class |
ThirdPartyPlugin.LicenseMap
Deprecated. |
| Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin |
|---|
Plugin.Packaging |
| Field Summary | |
|---|---|
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource |
artifactMetadataSource
Deprecated. Artifact metadata source component. |
protected org.apache.maven.artifact.resolver.ArtifactCollector |
collector
Deprecated. Artifact collector component. |
protected boolean |
copyToMETA_INF
Deprecated. Un flag pour farie une copie nommé dans META-INF (prefixe avec le nom de l'artifact). |
protected org.apache.maven.shared.dependency.tree.DependencyTreeBuilder |
dependencyTreeBuilder
Deprecated. Dependency tree builder component. |
protected String |
encoding
Deprecated. Encoding a utiliser pour lire et ecrire les fichiers. |
protected org.apache.maven.artifact.factory.ArtifactFactory |
factory
Deprecated. Artifact Factory component. |
protected boolean |
force
Deprecated. Un flag pour forcer la generation. |
protected boolean |
keepBackup
Deprecated. Un flag pour conserver un backup des fichiers modifies. |
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository
Deprecated. Local Repository. |
protected org.apache.maven.project.MavenProjectBuilder |
mavenProjectBuilder
Deprecated. Maven Project Builder component. |
protected File |
outputDirectory
Deprecated. Repertoire de sortie des classes (classpath). |
protected org.apache.maven.project.MavenProject |
project
Deprecated. Dependance du projet. |
protected List<?> |
remoteRepositories
Deprecated. Remote repositories used for the project. |
protected File |
thirdPartyFile
Deprecated. |
protected String |
thirdPartyFileContent
Deprecated. content of third party file (only computed if force is active or the
thirdPartyFile does not exist, or is not up-to-date. |
protected String |
thirdPartyFilename
Deprecated. Fichier ou ecrire les licences des dependances. |
protected boolean |
verbose
Deprecated. Un flag pour activer le mode verbeux. |
| Fields inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
skipAfterInitMessage |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
ThirdPartyPlugin()
Deprecated. |
|
| Method Summary | |
|---|---|
protected String |
buildGroupedLicenses(ThirdPartyPlugin.LicenseMap licenseMap)
Deprecated. |
protected void |
buildLicenseMap(org.apache.maven.shared.dependency.tree.DependencyNode node,
ThirdPartyPlugin.LicenseMap licenseMap)
Deprecated. |
protected boolean |
checkPackaging()
Deprecated. Check if the project packaging is acceptable for the mojo. |
protected void |
doAction()
Deprecated. Do plugin action. |
protected String |
getArtifactName(org.apache.maven.project.MavenProject artifactProject)
Deprecated. |
protected org.apache.maven.project.MavenProject |
getMavenProjectFromRepository(org.apache.maven.artifact.Artifact artifact)
Deprecated. Get the Maven project from the repository depending the Artifact given. |
org.apache.maven.project.MavenProject |
getProject()
Deprecated. |
protected boolean |
init()
Deprecated. Method to initialize the mojo before doing any concrete actions. |
boolean |
isVerbose()
Deprecated. |
protected org.apache.maven.shared.dependency.tree.DependencyNode |
resolveProject()
Deprecated. |
void |
setProject(org.apache.maven.project.MavenProject project)
Deprecated. |
void |
setVerbose(boolean verbose)
Deprecated. |
| Methods inherited from class org.nuiton.plugin.AbstractPlugin |
|---|
acceptPackaging, addCompileSourceRoots, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, checkResource, copyFile, execute, getFilesToTreate, getFilesToTreateForRoots, getTemplate, initClassLoader, isFileNewerThanPomFile, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, 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.apache.maven.plugin.Mojo |
|---|
getLog, setLog |
| Field Detail |
|---|
protected org.apache.maven.project.MavenProject project
protected String thirdPartyFilename
protected File outputDirectory
protected String encoding
protected boolean force
protected boolean keepBackup
protected boolean copyToMETA_INF
protected boolean verbose
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
protected List<?> remoteRepositories
protected org.apache.maven.shared.dependency.tree.DependencyTreeBuilder dependencyTreeBuilder
protected org.apache.maven.artifact.factory.ArtifactFactory factory
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource artifactMetadataSource
protected org.apache.maven.artifact.resolver.ArtifactCollector collector
protected org.apache.maven.project.MavenProjectBuilder mavenProjectBuilder
protected String thirdPartyFileContent
force is active or the
thirdPartyFile does not exist, or is not up-to-date.
protected File thirdPartyFile
| Constructor Detail |
|---|
public ThirdPartyPlugin()
| Method Detail |
|---|
protected boolean checkPackaging()
AbstractPluginAbstractPlugin.execute().
Tip: There is two method to simplify the packaging check :
AbstractPlugin.acceptPackaging(org.nuiton.plugin.Plugin.Packaging[])
and
AbstractPlugin.rejectPackaging(org.nuiton.plugin.Plugin.Packaging[])
checkPackaging in class AbstractPlugintrue if can execute the goal for the packaging of the
project, false otherwise.
protected boolean init()
throws Exception
AbstractPluginAbstractPlugin.doAction() method.
init in class AbstractPlugintrue if mojo is well initialize and something has
to be done in the AbstractPlugin.doAction() method, false
otherwise.
Exception - if any
protected void doAction()
throws Exception
AbstractPluginAbstractPlugin.execute() invoke this method only and only if :
AbstractPlugin.checkPackaging() returns true.AbstractPlugin.init() returns true.
doAction in class AbstractPluginException - if anyprotected org.apache.maven.shared.dependency.tree.DependencyNode resolveProject()
protected void buildLicenseMap(org.apache.maven.shared.dependency.tree.DependencyNode node,
ThirdPartyPlugin.LicenseMap licenseMap)
protected String buildGroupedLicenses(ThirdPartyPlugin.LicenseMap licenseMap)
protected String getArtifactName(org.apache.maven.project.MavenProject artifactProject)
protected org.apache.maven.project.MavenProject getMavenProjectFromRepository(org.apache.maven.artifact.Artifact artifact)
throws org.apache.maven.project.ProjectBuildingException
Maven project from the repository depending the Artifact given.
artifact - an artifact
org.apache.maven.project.ProjectBuildingException - if anypublic boolean isVerbose()
public void setVerbose(boolean verbose)
public org.apache.maven.project.MavenProject getProject()
public void setProject(org.apache.maven.project.MavenProject project)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||