|
||||||||||
| 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.helper.plugin.ShareServerSecretPlugin
public class ShareServerSecretPlugin
Obtain a server authentication and share it in the maven project properties.
To select data to export from the server with the givenserverId,
fill the properties :
usernameOut passwordOut privateKeyOut passphraseOut
| Nested Class Summary | |
|---|---|
static class |
ShareServerSecretPlugin.Property
|
| Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin |
|---|
Plugin.InitState, Plugin.Packaging |
| Field Summary | |
|---|---|
protected java.lang.String |
passphraseOut
The name of the property where to export the passphrase of the server. |
protected java.lang.String |
passwordOut
The name of the property where to export the password of the server. |
protected java.lang.String |
privateKeyOut
The name of the property where to export the private key of the server. |
protected org.apache.maven.project.MavenProject |
project
Dependance du projet. |
protected boolean |
runOnce
Un flag pour ne lancer le plugin qu'une seule fois par build. |
protected org.sonatype.plexus.components.sec.dispatcher.SecDispatcher |
sec
password decypher |
protected java.lang.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 java.lang.String |
usernameOut
The name of the property where to export the username of the server. |
protected boolean |
verbose
Un flag pour activer le mode verbeux. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
ShareServerSecretPlugin()
|
|
| Method Summary | |
|---|---|
boolean |
checkSkip()
Checks if the mojo execution should be skipped. |
protected void |
doAction()
Do plugin action. |
java.lang.String |
getPassphraseOut()
|
java.lang.String |
getPasswordOut()
|
java.lang.String |
getPrivateKeyOut()
|
org.apache.maven.project.MavenProject |
getProject()
|
java.lang.String |
getServerId()
|
java.lang.String |
getUsernameOut()
|
void |
init()
Method to initialize the mojo before doing any concrete actions. |
boolean |
isVerbose()
|
void |
setPassphraseOut(java.lang.String passphraseOut)
|
void |
setPasswordOut(java.lang.String passwordOut)
|
void |
setPrivateKeyOut(java.lang.String privateKeyOut)
|
void |
setProject(org.apache.maven.project.MavenProject project)
|
void |
setRunOnce(boolean runOnce)
|
void |
setSec(org.sonatype.plexus.components.sec.dispatcher.SecDispatcher sec)
|
void |
setServerId(java.lang.String serverId)
|
void |
setSettings(org.apache.maven.settings.Settings settings)
|
void |
setUsernameOut(java.lang.String usernameOut)
|
void |
setVerbose(boolean verbose)
|
| 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 org.apache.maven.settings.Settings settings
protected java.lang.String serverId
protected java.lang.String usernameOut
protected java.lang.String passwordOut
protected java.lang.String passphraseOut
protected java.lang.String privateKeyOut
protected boolean verbose
protected boolean runOnce
true car il ne parrâit pas
nécessaire de rejouer le mojo à chaque fois.
protected org.sonatype.plexus.components.sec.dispatcher.SecDispatcher sec
| Constructor Detail |
|---|
public ShareServerSecretPlugin()
| Method Detail |
|---|
public void init()
throws java.lang.Exception
AbstractPluginAbstractPlugin.doAction() method.
// * @return true if mojo is well initialize and something has
// * to be done in the AbstractPlugin.doAction() method, false
// * otherwise.
init in class AbstractPluginjava.lang.Exception - if anypublic boolean checkSkip()
AbstractPlugin
checkSkip in class AbstractPluginfalse if the mojo should not be executed.
protected void doAction()
throws java.lang.Exception
AbstractPluginAbstractPlugin.execute() invoke this method only and only if :
AbstractPlugin.checkPackaging() returns true.AbstractPlugin.init() returns true.
doAction in class AbstractPluginjava.lang.Exception - if anypublic org.apache.maven.project.MavenProject getProject()
public void setProject(org.apache.maven.project.MavenProject project)
public boolean isVerbose()
public void setVerbose(boolean verbose)
public java.lang.String getPassphraseOut()
public void setPassphraseOut(java.lang.String passphraseOut)
public java.lang.String getPasswordOut()
public void setPasswordOut(java.lang.String passwordOut)
public java.lang.String getPrivateKeyOut()
public void setPrivateKeyOut(java.lang.String privateKeyOut)
public java.lang.String getUsernameOut()
public void setUsernameOut(java.lang.String usernameOut)
public java.lang.String getServerId()
public void setServerId(java.lang.String serverId)
public void setSec(org.sonatype.plexus.components.sec.dispatcher.SecDispatcher sec)
public void setSettings(org.apache.maven.settings.Settings settings)
public void setRunOnce(boolean runOnce)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||