Cargo : Maven1 plugin
This page last changed on Jul 01, 2010 by alitokmen.
InstallationTo automatically install the plugin, type the following on a single line: maven plugin:download -DgroupId=org.codehaus.cargo -DartifactId=cargo-maven-plugin -Dversion=X.X(.X) where X.X(.X) is the release number you want to install (0.6 is the first available). Note that for versions earlier or equal to 0.7 you'll need to use a group id of cargo instead of org.codehaus.cargo. Plugin goals
Plugin properties
SamplesAll properties sample (incoherent settings)cargo.containers = myresin,myorion,myjetty cargo.zipUrlInstaller.myresin.installUrl = http://www.caucho.com/download/resin-3.0.9.zip cargo.zipUrlInstaller.myresin.installDir = $\{maven.build.dir\}/installs cargo.proxy.host = myproxy.mycompany.com cargo.proxy.port = 1080 cargo.proxy.user = vmassol cargo.proxy.password = somepassword cargo.proxy.excludehosts = fozbot.corp.sun.com\|\*.eng.sun.com cargo.container.myresin.containerId = resin3x cargo.container.myresin.home = c:/apps/resin/ cargo.container.myContainer.zipUrlInstaller = myContainerInstallerId cargo.container.myContainer.output = $\{maven.build.dir\}/myContainer/logs/container.log cargo.container.myContainer.log = $\{maven.build.dir\}/myContainer/logs/cargo.log cargo.container.myContainer.timeout = 120000 cargo.container.myContainer.deployables = myEarId, myWarId cargo.container.myContainer.config.type = standalone cargo.container.myContainer.config.home = $\{maven.build.dir\}/myContainer/config cargo.container.myContainer.config.standalone.servlet.port = 8280 cargo.container.myContainer.config.standalone.hostname = myserver cargo.container.myContainer.config.standalone.logging = high cargo.container.myContainer.config.standalone.jvmargs = -Xmx64m -Xms2m cargo.container.myContainer.start.output = $\{maven.build.dir\}/myContainer/logs/container-start.log cargo.container.myContainer.start.log = $\{maven.build.dir\}/myContainer/logs/cargo-start.log cargo.container.myContainer.stop.output = $\{maven.build.dir\}/myContainer/logs/container-stop.log cargo.container.myContainer.stop.log = $\{maven.build.dir\}/myContainer/logs/cargo-stop.log cargo.container.myContainer.config.standalone.orion.rmi.port = 25791 cargo.container.myContainer.config.standalone.tomcat.shutdown.port = 8205 cargo.deployable.myDeployableId.type = war cargo.deployable.myDeployableId.file = $\{maven.war.build.dir\}/$\{maven.war.final.name\} Minimal settings to start and stop a containerExample with tomcat already installed: maven.xml <preGoal name="cargo:start"> <ant:mkdir dir="${maven.build.dir}/myTomcat/config"/> </preGoal> project.properties cargo.containers = myTomcat cargo.container.myTomcat.containerId = tomcat5x cargo.container.myTomcat.home = C:/Programs/web/jakarta-tomcat-5.0 cargo.container.myTomcat.config.type = standalone cargo.container.myTomcat.config.home = ${maven.build.dir}/myTomcat/config cargo.container.myTomcat.config.standalone.servlet.port = 8280 cargo.container.myTomcat.config.standalone.logging = high IDE supportNetbeansThere's a Netbeans module working with Mevenide for Netbeans. The module adds a panel into the Maven project's customizer. It eases the setup of the Maven plugin properties and visualizes the current settings. The current version of the module is 1.0, it works with Mevenide 0.8.1 and later and Netbeans 4.1 and Netbeans 5.0 beta. It can be downloaded here. After download, start Netbeans and install the module through the AutoUpdate Center. Sample screenshot |
![]() |
Document generated by Confluence on Nov 03, 2010 20:45 |