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-ant JAR, containing the <taskdef> definition (see the Ant support page)
Apache Maven 2 / Maven 3
Maven 2 / Maven 3 will automatically download all required dependencies: see the Maven2 plugin page. As a result, no installation is required for Maven 2 / Maven 3.
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
Example for adding the Codehaus Cargo uberjar as dependency