Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 198 Next »

A Maven 2 plugin that wraps the Cargo Java API

Functional tests


The usage of Cargo for executing functional tests on a container does not need this m2 plugin. You should directly use the Cargo Java API from your Java unit test classes (JUnit, TestNG, etc), as described on the Functional testing page.

Table of Contents

The documentatation for this Maven2 plugin includes:

  • Installation: explains how to install the plugin
  • Getting started: explains how to use the plugin on several use cases
  • Reference Guide: provide reference documentation for all configuration options
  • Tips: tips for using the plugin

Getting Started

As usual the best way to learn to use a tool is through examples. We have several sample projects that we use as our internal functional tests suite. We really recommend that you check them out.

In addition here are the typical uses cases covered by the plugin:

Here are the different goals available to call on this plugin:




Start a container and optionally deploy deployables (WAR, EAR, etc)


Stop a container

cargo:deployer-deploy (aliased to cargo:deploy)

Deploy a deployable to a running container

cargo:deployer-undeploy (aliased to cargo:undeploy)

Undeploy a deployable from a running container


Start a deployable already installed in a running container


Stop a deployed deployable without undeploying it


Undeploy and deploy again a deployable


Merge several WAR files into one

The configuration elements are described in the Reference Guide section.

  • No labels