|
||||||||||
| 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 |
|---|
| Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin |
|---|
Plugin.Packaging |
| 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 class org.nuiton.plugin.AbstractPlugin |
|---|
skipAfterInitMessage |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
ShareServerSecretPlugin()
|
|
| 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.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 boolean verbose
protected org.sonatype.plexus.components.sec.dispatcher.SecDispatcher sec
| Constructor Detail |
|---|
public ShareServerSecretPlugin()
| Method Detail |
|---|
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 anypublic org.apache.maven.project.MavenProject getProject()
public void setProject(org.apache.maven.project.MavenProject project)
public boolean isVerbose()
public void setVerbose(boolean verbose)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||