...
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 uses 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:
| Code Block |
|---|
| title | Example for adding the CARGO uberjar as dependency |
|---|
| language | html/xml |
|---|
|
<dependency>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-core-uberjar</artifactId>
<version>${cargo.version}</version>
</dependency> |
| Code Block |
|---|
| title | Example for adding the CARGO Tomcat container as dependency |
|---|
| language | html/xml |
|---|
|
<dependency>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-core-container-tomcat</artifactId>
<version>${cargo.version}</version>
</dependency> |