|
||||||||||
| 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 String |
passphraseOut
The name of the property where to export the passphrase of the server. |
protected String |
passwordOut
The name of the property where to export the password of the server. |
protected 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 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 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. |
String |
getPassphraseOut()
|
String |
getPasswordOut()
|
String |
getPrivateKeyOut()
|
org.apache.maven.project.MavenProject |
getProject()
|
String |
getServerId()
|
String |
getUsernameOut()
|
void |
init()
Method to initialize the mojo before doing any concrete actions. |
boolean |
isVerbose()
|
void |
setPassphraseOut(String passphraseOut)
|
void |
setPasswordOut(String passwordOut)
|
void |
setPrivateKeyOut(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(String serverId)
|
void |
setSettings(org.apache.maven.settings.Settings settings)
|
void |
setUsernameOut(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 String serverId
protected String usernameOut
protected String passwordOut
protected String passphraseOut
protected 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 Exception
AbstractPluginAbstractPlugin.doAction() method.
init in class AbstractPluginException - if anypublic boolean checkSkip()
AbstractPlugin
checkSkip in class AbstractPluginfalse if the mojo should not be executed.
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 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 String getPassphraseOut()
public void setPassphraseOut(String passphraseOut)
public String getPasswordOut()
public void setPasswordOut(String passwordOut)
public String getPrivateKeyOut()
public void setPrivateKeyOut(String privateKeyOut)
public String getUsernameOut()
public void setUsernameOut(String usernameOut)
public String getServerId()
public void setServerId(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 | |||||||||