Java API

Cargo offers primarily a Java API. It is meant to be embedded in your application. You'll need Java SE version 5 or greater.

You have two choices to pick from the Downloads page:

CARGO's base dependencies are as follows:

If you want to deploy datasources (database, resources, etc.) with CARGO, you also need:

Finally, some specific deployables (for example, Tomcat WARs) require the following:

In the case you're running on Java 5, you will also need Xerces 2.4.0 or greater.

Ant

If you want use the Cargo Ant tasks, add the following JARs to ANT's classpath:

Maven2 and Maven2

Maven2/Maven3 will automatically download all required dependencies: see the Maven2 plugin page. As a result, no installation is required for Maven2 nor Maven3.

If you are creating a Java applications which use the CARGO via API, you need to add as dependency either the artifact for your favorite container or the uberjar (which contains all containers). See below

<dependency>
  <groupId>org.codehaus.cargo</groupId>
  <artifactId>cargo-core-uberjar</artifactId>
  <version>${cargo.version}</version>
</dependency>
<dependency>
  <groupId>org.codehaus.cargo</groupId>
  <artifactId>cargo-core-container-tomcat</artifactId>
  <version>${cargo.version}</version>
</dependency>