The Cargo Maven Plugin is found at (groupId:artifactId
) org.codehaus.cargo:cargo-maven3-plugin
.
This plugin has been built exclusively for Maven 3.x, and our Continous Integration system tests it on Maven version 3.5.4.
The Codehaus 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.
There are also snapshot releases of the Codehaus Cargo 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:
[...] <pluginRepositories> <pluginRepository> <id>sonatype-snapshots</id> <name>Sonatype Snapshots</name> <url>https://oss.sonatype.org/content/repositories/snapshots/</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> </pluginRepositories> <repositories> <repository> <id>sonatype-snapshots</id> <name>Sonatype Snapshots</name> <url>https://oss.sonatype.org/content/repositories/snapshots/</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> [...] |
Note that you need to declare both the 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 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:
SNAPSHOT
version is, you can simply look at the root POM file for Codehaus Cargo.SNAPSHOT
version you want.For example, to use version 1.
you would declare something similar to the following in your POM:10.12
-SNAPSHOT
[...] <build> <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven3-plugin</artifactId> <version>1.10.14-SNAPSHOT</version> [...] </plugin> [...] </plugins> </build> [...] |