|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.plugin.AbstractMojo
com.xebialabs.deployit.maven.AbstractDeployitMojo
public abstract class AbstractDeployitMojo
Provides common code for deployit mojos
| Field Summary | |
|---|---|
protected boolean |
cancelTaskOnError
When a task falls in error, it is cancelled. |
protected com.xebialabs.deployit.booter.remote.DeployitCommunicator |
communicator
|
protected boolean |
deletePreviouslyDeployedDar
Delete the previous deployed dar. |
protected List<MavenDeployable> |
deployables
List of the deployables, including artifacts or middleware resource specification (eg Datasource) |
protected List<MavenDeployed> |
deployeds
List of the deployeds: extensions or complete if you use explicitDeployeds options |
protected List<MavenContainer> |
environment
List of container in the target environment, if you want to create the environment through the Maven plugin. |
protected String |
environmentId
Id of the environment used for the deployment. |
protected boolean |
explicitDeployeds
With explicitDeployeds true, the deployed are not generated but fully loaded from the plugin configuration. |
protected boolean |
failIfNoStepsAreGenerated
If a deployments leads no steps, fail the build. |
protected boolean |
generateDeployedOnUpgrade
Flag controlling whether, during the upgrade operation, the Deployed objects should generated (like an initial deployment) or reused. |
protected String |
mainArtifactName
|
protected String |
orchestrator
Set the orchestrator used during the deployment. |
protected String |
password
Deployit password. |
protected int |
port
Deployit Listen port. |
protected org.apache.maven.project.MavenProject |
project
The maven project. |
protected boolean |
secured
If true the communication with the deployit server is secured (https). |
protected String |
serverAddress
Deployit server address |
protected boolean |
skipMode
Activate the skip mode: generate the plan, skip all the steps, validate the task |
protected boolean |
testMode
Activate the test mode, generate the plan, display all the steps, validate the task |
protected boolean |
timestampedVersion
Use this attribute to add a timestamp to the version of the deployit package. |
protected String |
username
Deployit username. |
| Fields inherited from interface org.apache.maven.plugin.Mojo |
|---|
ROLE |
| Constructor Summary | |
|---|---|
AbstractDeployitMojo()
|
|
| Method Summary | |
|---|---|
protected void |
boot()
Boots REST API |
protected DeploymentHelper |
getDeploymentHelper()
|
protected String |
getPassword()
|
org.apache.maven.project.MavenProject |
getProject()
|
protected String |
getUsername()
|
protected boolean |
hasDeployeds()
|
protected com.xebialabs.deployit.plugin.api.udm.ConfigurationItem |
importDar()
|
void |
setDeletePreviouslyDeployedDar(boolean deletePreviouslyDeployedDar)
|
void |
setDeploymentHelper(DeploymentHelper deploymentHelper)
For testing purposes |
void |
setEnvironment(List<MavenContainer> environment)
|
void |
setEnvironmentId(String environmentId)
|
void |
setExplicitDeployeds(boolean explicitDeployeds)
|
void |
setGenerateDeployedOnUpgrade(boolean generateDeployedOnUpgrade)
|
void |
setMainArtifactName(String mainArtifactName)
|
void |
setPort(int port)
|
void |
setProject(org.apache.maven.project.MavenProject project)
|
void |
setTestMode(boolean testMode)
|
protected void |
shutdown()
|
| 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 |
|---|
execute |
| Field Detail |
|---|
protected org.apache.maven.project.MavenProject project
protected String mainArtifactName
protected boolean skipMode
protected String orchestrator
protected boolean testMode
protected boolean failIfNoStepsAreGenerated
protected String serverAddress
protected int port
protected String username
protected String password
protected boolean secured
protected String environmentId
protected List<MavenDeployed> deployeds
protected boolean explicitDeployeds
protected List<MavenDeployable> deployables
protected List<MavenContainer> environment
protected boolean timestampedVersion
protected boolean deletePreviouslyDeployedDar
protected boolean generateDeployedOnUpgrade
protected boolean cancelTaskOnError
protected com.xebialabs.deployit.booter.remote.DeployitCommunicator communicator
| Constructor Detail |
|---|
public AbstractDeployitMojo()
| Method Detail |
|---|
protected com.xebialabs.deployit.plugin.api.udm.ConfigurationItem importDar()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected String getUsername()
protected String getPassword()
protected void boot()
protected void shutdown()
public void setProject(org.apache.maven.project.MavenProject project)
public org.apache.maven.project.MavenProject getProject()
public void setEnvironmentId(String environmentId)
public void setEnvironment(List<MavenContainer> environment)
public void setMainArtifactName(String mainArtifactName)
public void setDeletePreviouslyDeployedDar(boolean deletePreviouslyDeployedDar)
public void setExplicitDeployeds(boolean explicitDeployeds)
public void setPort(int port)
public void setDeploymentHelper(DeploymentHelper deploymentHelper)
deploymentHelper - deployment helper injection for testingprotected DeploymentHelper getDeploymentHelper()
public void setTestMode(boolean testMode)
protected boolean hasDeployeds()
public void setGenerateDeployedOnUpgrade(boolean generateDeployedOnUpgrade)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||