Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Installation

The Cargo Maven Plugin is found at (groupId:artifactId) org.codehaus.cargo:cargo-maven2maven3-plugin.

This plugin works and is tested with has been built exclusively for Maven 3.x. Please note that though we have no explicit blockage of any Maven 2.x versions, the Codehaus Cargo Maven 2 / Maven 3 Plugin is not regularly tested on that old version, and our Continous Integration system tests it on Maven version 3.5.4.

Releases

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

Anchor
snapshots
snapshots

Snapshots

There are also snapshot releases of the Codehaus Cargo Maven 2 / Maven 3 plugin (and all other Cargo artifacts) available through the Sonatype snapshot repository. Snapshot releases are deployed automatically by the Continous Integration system.

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:

...

Info
title<pluginRepository> and <repository> declarations

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

When you do not do that properly, you will be getting errors such as:

Cannot create configuration. There's no registered configuration for the parameters (container [id = [tomcat9x], type = [installed]], configuration type [standalone]). Actually there are no valid types registered for this configuration. Maybe you've made a mistake spelling it?

In case the errors persist even after adding the SNAPSHOT repositories, you can install the associated container artifact. Example (with the Codehaus Cargo Tomcat container):

mvn dependency:get -Dartifact=org.codehaus.cargo:cargo-core-container-tomcat:1.10.14-SNAPSHOT -DremoteRepositories=https://oss.sonatype.org/content/repositories/snapshots/

Then, you should decide which SNAPSHOT version to use:

...

For example, to use version 1.610.412-SNAPSHOT you would declare something similar to the following in your POM:

Code Block
xml
xml
[...]
  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-maven2maven3-plugin</artifactId>
        <version>1.610.414-SNAPSHOT</version>
[...]
      </plugin>
[...]
    </plugins>
  </build>
[...]

...