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 20 Next »

Installation

The Cargo Maven Plugin is found at (groupId:artifactId) org.codehaus.cargo:cargo-maven2-plugin. This plugin works with both Maven 2.x and 3.x.

Releases

The Cargo Maven Plugin (and all other Cargo artifacts) are hosted at the Codehaus Maven repository, which is synced to Maven central. As Maven is configured for Maven central by default, no additional installation or repository configuration is necessary to use the plugin.

Snapshots

There are also snapshot releases of the Cargo Maven plugin (and all other Cargo artifacts) available through the Codehaus snapshot repository. Snapshot releases are deployed automatically by the CARGO-deploy plan on the Codehaus Continuous Integration Server.

If you want use snapshot versions of the Cargo Maven Plugin, you'll need to add this repository to your POM, settings file, or repository manager:

<pluginRepository> and <repository> declarations

Icon

Note that you need to declare both the pluginRepository and repository, due to the way how the CARGO plugin's container artifact loading mechanism works.

Then, you should decide which SNAPSHOT version to use. To find out what the latest SNAPSHOT version is, you can simply look at the POM file for the Cargo Extensions.

Finally, configure the Cargo Maven Plugin by specifying a SNAPSHOT version. For example, to use version 1.3.4-SNAPSHOT you would declare something similar to the following in your POM:

One important thing to understand is that this snapshot repository is managed by Nexus and is in fact a group of several repositories (some proxied). Browsing the repository via the url would therefore not display all files actually available, but only those cached in the Nexus instance. However, Maven will always be able to retrieve the latest snapshot release (as it reads the Maven metadata provided).

  • No labels