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:
- the
cargo-core-api-*jars and the container implementations you wish to use (cargo-core-container-*jars) - or the
cargo-core-uberjarjar which aggregates all the required jars
CARGO's base dependencies are as follows:
- Ant 1.5.4 or greater.
- Commons discovery 0.4 or greater.
- Commong logging 1.1 or greater.
If you want to deploy datasources (database, resources, etc.) with CARGO, you also need:
- dom4j 1.4 or greater.
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:
- The same jars as for the Java API (i.e., either the API JARs + the container(s) or the uberjar)
- The
cargo-antJAR, containing the <taskdef> definition (see the Ant support page)
Maven2
Maven2 will automatically download all required dependencies: see the Maven2 plugin page. As a result, no installation is required for Maven2.
Maven1
To use the Cargo plugin for Maven1 (the old Maven) you'll need to install it (see the Maven1 plugin page).