Cargo : Maven2 Plugin Installation
This page last changed on Oct 31, 2010 by alitokmen.
InstallationThe Cargo Maven 2 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, there is no installation necessary. The plugin is found at (groupId:artifactId) org.codehaus.cargo:cargo-maven2-plugin. Note that the Cargo project has a snapshot repository on Codehaus. That repository is uploaded to automatically by the CARGO-deploy plan on the Codehaus Continous Integration Server (documentation for it is on Continuous Integration - Snapshots). If you want use snapshot versions of the Cargo Maven 2 plugin you'll need to add this definition in your POM or settings file: [...] <pluginRepositories> <pluginRepository> <id>codehaus-snapshots</id> <url>http://ci.repository.codehaus.org/</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> </pluginRepositories> <repositories> <repository> <id>codehaus-snapshots</id> <url>http://ci.repository.codehaus.org/</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> [...] Then configure the Cargo plugin by specifying a SNAPSHOT version. For example to use version 1.0.5-SNAPSHOT you would write in your POM: [...] <build> <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0.5-SNAPSHOT</version> [...] </plugin> [...] </plugins> </build> [...] |
![]() |
Document generated by Confluence on Nov 03, 2010 20:46 |