public abstract class AbstractDeployitMojo
extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected String |
applicationName
The name of the application for this DAR file, i.e.
|
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<XmlFragment> |
deploymentPackageProperties
List of package-level properties
|
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
If the project packaging is
ear or war , sets the
CI-Name property for the EAR/WAR artifact in the DAR. |
protected String |
orchestrator
Set the orchestrator used during the deployment.
|
protected String |
packageVersion
Package version to be used instead of the automatically generated version.
|
protected String |
password
Deployit password.
|
protected int |
port
Deployit Listen port.
|
protected org.apache.maven.project.MavenProject |
project
The maven project.
|
protected List<org.apache.maven.project.MavenProject> |
reactorProjects
All maven projects in the reactor.
|
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 int |
socketTimeout
Socket timeout in milliseconds.
|
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.
|
Constructor and Description |
---|
AbstractDeployitMojo() |
Modifier and Type | Method and Description |
---|---|
protected void |
boot()
Boots REST API
|
List<MavenDeployable> |
getDeployables() |
protected DeploymentHelper |
getDeploymentHelper() |
List<XmlFragment> |
getDeploymentPackageProperties() |
String |
getPackageVersion() |
protected String |
getPassword() |
org.apache.maven.project.MavenProject |
getProject() |
protected String |
getUsername() |
protected ServerVersionCompatibility |
getVersionChecker() |
protected boolean |
hasDeployeds() |
boolean |
isTimestampedVersion() |
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 |
setPackageVersion(String packageVersion) |
void |
setPort(int port) |
void |
setProject(org.apache.maven.project.MavenProject project) |
void |
setTestMode(boolean testMode) |
void |
setTimestampedVersion(boolean timestampedVersion) |
void |
setVersionChecker(ServerVersionCompatibility versionChecker) |
protected void |
shutdown() |
getLog, getPluginContext, setLog, setPluginContext
protected org.apache.maven.project.MavenProject project
protected List<org.apache.maven.project.MavenProject> reactorProjects
protected String applicationName
CI-Application
attribute.protected String mainArtifactName
ear
or war
, sets the
CI-Name
property for the EAR/WAR artifact in the DAR.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<XmlFragment> deploymentPackageProperties
protected List<MavenDeployed> deployeds
protected boolean explicitDeployeds
protected List<MavenDeployable> deployables
protected List<MavenContainer> environment
protected boolean timestampedVersion
protected String packageVersion
protected boolean deletePreviouslyDeployedDar
protected boolean generateDeployedOnUpgrade
protected boolean cancelTaskOnError
protected com.xebialabs.deployit.booter.remote.DeployitCommunicator communicator
protected int socketTimeout
protected 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 setVersionChecker(ServerVersionCompatibility versionChecker)
protected ServerVersionCompatibility getVersionChecker()
public void setTestMode(boolean testMode)
protected boolean hasDeployeds()
public void setGenerateDeployedOnUpgrade(boolean generateDeployedOnUpgrade)
public List<MavenDeployable> getDeployables()
public List<XmlFragment> getDeploymentPackageProperties()
public String getPackageVersion()
public void setPackageVersion(String packageVersion)
public boolean isTimestampedVersion()
public void setTimestampedVersion(boolean timestampedVersion)
Copyright © 2016. All rights reserved.