org.nuiton.helper.plugin
Class ShareServerSecretPlugin
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.nuiton.plugin.AbstractPlugin
org.nuiton.helper.plugin.ShareServerSecretPlugin
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, Plugin
public class ShareServerSecretPlugin
- extends AbstractPlugin
Obtain a server authentication and share it in the maven
project properties.
To select data to export from the server with the given serverId,
fill the properties :
usernameOut
passwordOut
privateKeyOut
passphraseOut
- Since:
- 1.1.0
- Author:
- chemit
- Is defined by the goal name:
- share-server-secret
- Is bound to the specified phase of the standard build lifecycle:
- initialize
- Requires a Maven project to run:
- true
|
Field Summary |
protected org.apache.maven.project.MavenProject |
project
Dependance du projet. |
protected org.sonatype.plexus.components.sec.dispatcher.SecDispatcher |
sec
password decypher |
protected String |
serverId
Server id to use for authentication (must be defined in your setting
and use the maven >= 2.1.0 password encryption mecanism). |
protected org.apache.maven.settings.Settings |
settings
Dependance du settings. |
protected boolean |
verbose
Un flag pour activer le mode verbeux. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
|
Method Summary |
protected void |
doAction()
Do plugin action. |
org.apache.maven.project.MavenProject |
getProject()
|
protected boolean |
init()
Method to initialize the mojo before doing any concrete actions. |
boolean |
isVerbose()
|
void |
setProject(org.apache.maven.project.MavenProject project)
|
void |
setVerbose(boolean verbose)
|
| Methods inherited from class org.nuiton.plugin.AbstractPlugin |
acceptPackaging, addCompileSourceRoots, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, checkPackaging, 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 |
project
protected org.apache.maven.project.MavenProject project
- Dependance du projet.
- Since:
- 1.1.0
- Is defined by:
- default-value:
- ${project}
- Is readonly.
- Is required.
settings
protected org.apache.maven.settings.Settings settings
- Dependance du settings.
- Since:
- 1.1.0
- Is defined by:
- default-value:
- ${settings}
- Is readonly.
- Is required.
serverId
protected String serverId
- Server id to use for authentication (must be defined in your setting
and use the maven >= 2.1.0 password encryption mecanism).
- Since:
- 1.1.0
- Is defined by:
- expression:
- ${helper.serverId}
- Is required.
verbose
protected boolean verbose
- Un flag pour activer le mode verbeux.
- Since:
- 1.1.0
- Is defined by:
- expression:
- ${helper.verbose}
- default-value:
- ${maven.verbose}
sec
protected org.sonatype.plexus.components.sec.dispatcher.SecDispatcher sec
- password decypher
- Since:
- 1.1.0
- Is a Plexus component defined by:
- roleHint:
- maven-helper-plugin
ShareServerSecretPlugin
public ShareServerSecretPlugin()
init
protected boolean init()
throws Exception
- Description copied from class:
AbstractPlugin
- Method to initialize the mojo before doing any concrete actions.
Note: The method is invoked before the
AbstractPlugin.doAction() method.
- Specified by:
init in class AbstractPlugin
- Returns:
true if mojo is well initialize and something has
to be done in the AbstractPlugin.doAction() method, false
otherwise.
- Throws:
Exception - if any
doAction
protected void doAction()
throws Exception
- Description copied from class:
AbstractPlugin
- Do plugin action.
The method
AbstractPlugin.execute() invoke this method only and only if :
- Specified by:
doAction in class AbstractPlugin
- Throws:
Exception - if any
getProject
public org.apache.maven.project.MavenProject getProject()
setProject
public void setProject(org.apache.maven.project.MavenProject project)
isVerbose
public boolean isVerbose()
setVerbose
public void setVerbose(boolean verbose)
Copyright © 2009 CodeLutin. All Rights Reserved.