|
Cargo v0.7 and Maven2 plugin v0.1
[
vmassol
]
Cargo is a container-manipulation library that allows configuring, starting and stopping containers. It also deploys modules to those containers. Version 0.7 has been released last week along with version 0.1 of a Maven2 plugin. The nice thing about Cargo is that it provides a uniform API across all containers and it has several end user APIs: a Java API, Ant tasks, a Maven 1 plugin, a Maven 2 plugin, a Netbeans plugin, an IntelliJ IDEA plugin, etc. You can use any of those extensions with all the supported containers. I'd like to quickly demonstrate how to use the new Maven 2 plugin on 2 use cases (more samples can be found here):
Deploying a WAR and starting Tomcat 5.xCreate a Maven 2 project and put the following configuration in your
To generate your WAR, start Tomcat and deploy the WAR in it, simply type:
Orion 2.0.5 will then be automatically downloaded and installed the first time you run your build. Inplace webapp development with JettyLet's imagine you're using the same project as above but this time you'd like to start Jetty and make it point to your webapp directory (i.e.
Then open a shell prompt and type If you're interesting in learning more, check the documentation and join us on the Cargo mailing lists. TrackBackI've tried to implement this with tomcat and it doesn't seem to work. Could you look at my pom and tell me if it looks correct? --mmasters, February 8, 2006 04:08 AM
This is all very fine, however..... How can the mvn plugin be configured such that it simply deploys the newly created WAR file to a pre-installed version of tomcat without changing any config etc of the pre-existing container? Can you demonstrate a simple example of what the pom would look like in this instance? Thanks, --JavaRab, February 24, 2006 12:48 AM
Hi Rab, Please use the Cargo mailing lists for any question related to Cargo. Thanks! --Vincent Massol, February 24, 2006 09:25 AM
${project.build.directory}/jetty ${project.build.directory}/jetty --Archimedes Trajano, March 23, 2006 04:59 AM
Hi Archimedes, The blog post is correct. Remember that it's using version 0.7 of Cargo. The change you suggest is for Cargo 0.8. See http://cargo.codehaus.org/Release+notes+for+Cargo+0.8 for all the changes between Cargo 0.7 and 0.8. --Vincent Massol, March 23, 2006 05:56 AM
[dir] ${project.build.directory}/jetty [/dir] --Archimedes Trajano, March 23, 2006 11:19 PM
Post a comment
|