maven-cargo

Howto pass Java system properties to maven-cargo container

I'm preparing a maven2 web project for continuous integration. I use the maven cargo plugin to automatically deploy the WAR to Tomcat6x before running integration tests. My code depends on some system properties which are set with MAVEN_OPTS=-Dfoo=bar. Unfortunately these properties are missing when the application is deployed to Tomcat...

Problem using Maven with Cargo plug-in

When I'm using Maven with the cargo plug-ing to handle hot deployments to tomcat, maven fails on the clean task if the .war artifact doesn't currently exist. So if I run mvn clean, then mvn clean package - it errors out. What can I do to have cargo ignore that? C:\work2\Fresh\fresh-ui>mvn clean [INFO] Scanning for projects... [INFO...

Maven2: Cargo plugin hot deployment & Jonas support

I am trying to get the Cargo plugin works on my maven project in order to benefit from war hot-deployment targetting the Jonas server. The official documentation is not that clear on what is supported and what is not (for example you can find this: http://cargo.codehaus.org/Hot+Deployment but also this http://cargo.codehaus.org/JOnAS+4....

How to deploy remotely EAR to JBoss 5.1.0.GA using Cargo maven plugin?

Has someone successfully deployed EAR remotely to JBoss 5.1.0.GA? My pom.xml configuration is as follows: <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0.1-SNAPSHOT</version> <configuration> <container> <containerId>jboss51x</containerId> ...

Using maven and embedded jetty: ClassCastException

I have a web-application written in java. I would like to run integration tests on a embedded jetty server. For that purpose I have a maven project (just for running integration tests). For deploying I use cargo-maven2-plugin. But while jetty startup I receive following: java.lang.ClassCastException: org.mortbay.jetty.webapp.WebIn...

How to deploy a specific child project with cargo:start using maven

Hi experts, I have a developed application and I am just trying to make the build process easy. The POM file for parent looks like this: <parent> <groupId>com.shc.obu.ca</groupId> <artifactId>shcobuca-pom</artifactId> <version>1.1.0</version> </parent> <groupId>com.shc.obu.ca.osol</groupId> <artifactId>apps-pom</artifa...

How use cargo-maven2-plugin deploy to jboss as5?

I trying cargo-maven2-plugin, but I don't deploy in jboss5x I pom.xml is <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0.2</version> <configuration> <container> <containerId>jboss51x</containerId> ...

Hot deployment to GlassFish using cargo-maven2-plugin, how to configure?

Did I understand right from this page that Cargo Maven plugin doesn't support hot remote deployment to GlassFish 3.x? If I'm wrong, how can I configure it to support such type of operation? Maybe I should use some other plugin? I'd like to deploy to GlassFish remote installation, through HTTP, in "hot" mode. ...

Deployed war in JBoss via cargo-maven2-plugin not accessible via JBoss AS Admin console

I'm deploying a war to a remote JBoss 5.1.0 using the following POM config <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0.2</version> <configuration> <container> <containerId>jboss51x</containerId> <type>...

maven tomcat plugin or cargo plugin ?

The spring source code examples use maven tomcat plugin and i am able to run these projects using the command mvn tomcat:run but what i dont see the application is not deployed in local tomcat server("C:\apache tomcat\webapps\").. And how it is different from cargo plugin? (In this case when i ran the command mvn cargo:redeploy, i see t...

Failing to deploy webapp in tomcat using maven cargo

I am trying to deploy a webapplication using maven cargo plugin into tomcat server. But i am getting the below error when i am running the command mvn cargo:deploy in the command prompt. [INFO] Failed to deploy [C:\Users\Ramesh\workspace\SimpleSpringMvcExample\target \SimpleSpringMvcExample.war] FAIL - Encountered exception ...

GlassFish v3 cargo-maven2-plugin

I see that supports GlassFish v3, but the online examples is sparse. I continue to get the same error back from cargo: Cannot find the GlassFish admin CLI JAR: admin-cli.jar Here is my pom <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0.3</version> <configuration...

Maven Cargo Deploy During Release Perform

Is it possible to have maven do a cargo:redeploy while I am doing a release:perform? Currently, we do a release:perform which removes -SNAPSHOT from the version, builds, commits, and then increments the version. This places the final version WAR in the target/ directory but running cargo:redeploy sees the new version number in the pom.x...

How to specify jetty-env.xml file for Maven Cargo plugin for Jetty?

I am migrating from Maven's jetty plugin to the Cargo plugin (cargo-maven2-plugin) because Cargo will happily run WARs from dependent Maven modules. Within out web-app we have taken great pains to externalize all configuration through JNDI. These JNDI definitions are web-app specific and therefore are placed in a jetty-env.xml file tha...