com.xebialabs.deployit.maven
Class AbstractDeployitMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.xebialabs.deployit.maven.AbstractDeployitMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
CleanMojo, DeployMojo, GenerateDeploymentPackageMojo, ImportDarMojo

public abstract class AbstractDeployitMojo
extends org.apache.maven.plugin.AbstractMojo

Provides common code for deployit mojos

Author:
Benoit Moussaud

Field Summary
protected  MavenCli client
           
protected  boolean deletePreviouslyDeployedDar
          Delete the previous deployed dar.
protected  List<Deployable> deployables
          List of the deployables, including artifacts or middleware resource specification (eg Datasource)
protected  List<Deployed> deployeds
          List of the deployeds: extensions or complete if you use explicitDeployeds options
protected  List<Container> environment
          List of container in the target environment, if you want to create the environment through the Maven plugin.
protected  boolean explicitDeployeds
          With explicitDeployeds true, the deployed are not generated but fully loaded from the pluging configuration.
protected  boolean failIfNoStepsAreGenerated
          If a deployments leads no steps, fail the build.
protected  String mainArtifactName
           
protected  ManifestPackager packager
           
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  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.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractDeployitMojo()
           
 
Method Summary
protected  void deploy()
           
protected  com.xebialabs.deployit.core.api.dto.RepositoryObject fetchEnvironment()
           
protected  MavenCli getClient()
           
protected  com.xebialabs.deployit.core.api.dto.RepositoryObject importDar()
           
protected  com.xebialabs.deployit.core.api.dto.RepositoryObject importDar(File darFile)
           
protected  void undeploy()
           
 
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

project

protected org.apache.maven.project.MavenProject project
The maven project.


mainArtifactName

protected String mainArtifactName

skipMode

protected boolean skipMode
Activate the skip mode: generate the plan, skip all the steps, validate the task


testMode

protected boolean testMode
Activate the test mode, generate the plan, display all the steps, validate the task


failIfNoStepsAreGenerated

protected boolean failIfNoStepsAreGenerated
If a deployments leads no steps, fail the build.


secured

protected boolean secured
If true the communication with the deployit server is secured (https).


deployeds

protected List<Deployed> deployeds
List of the deployeds: extensions or complete if you use explicitDeployeds options


deployables

protected List<Deployable> deployables
List of the deployables, including artifacts or middleware resource specification (eg Datasource)


environment

protected List<Container> environment
List of container in the target environment, if you want to create the environment through the Maven plugin.


timestampedVersion

protected boolean timestampedVersion
Use this attribute to add a timestamp to the version of the deployit package. by default,the SNAPSHOT versions are automatically timestamped


deletePreviouslyDeployedDar

protected boolean deletePreviouslyDeployedDar
Delete the previous deployed dar. Useful if you work with the SNAPSHOT versions you don't want to keep in your repository.


explicitDeployeds

protected boolean explicitDeployeds
With explicitDeployeds true, the deployed are not generated but fully loaded from the pluging configuration.


packager

protected ManifestPackager packager

client

protected MavenCli client
Constructor Detail

AbstractDeployitMojo

public AbstractDeployitMojo()
Method Detail

getClient

protected MavenCli getClient()
                      throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

deploy

protected void deploy()
               throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

importDar

protected com.xebialabs.deployit.core.api.dto.RepositoryObject importDar()
                                                                  throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

undeploy

protected void undeploy()
                 throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

importDar

protected com.xebialabs.deployit.core.api.dto.RepositoryObject importDar(File darFile)
                                                                  throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

fetchEnvironment

protected com.xebialabs.deployit.core.api.dto.RepositoryObject fetchEnvironment()
                                                                         throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2012. All Rights Reserved.