Questions tagged [cargo]

Cargo is a thin wrapper that allows you to manipulate Java EE containers in a standard way. It is often used to start containers for integration and functional tests, especially with Maven or Ant. DO NOT use this for the Rust-related tool; use "rust-cargo" instead.

Cargo is a thin wrapper that allows you to manipulate Java EE containers in a standard way. It is often used to start containers for integration and functional tests, especially with Maven (Cargo - Maven) or Ant (Cargo - Ant). Another use case is to create configurations and doing the deployments for the application.

Cargo provides the following Tools and APIs:

  • A Java API to start/stop/configure Java Containers and deploy modules into them.
  • A Java API to parse/create/merge Java EE Modules
  • Ant tasks and Maven 2/Maven 3 plugins.
319 questions
2
votes
3 answers

Hot Deploy to multiple tomcat servers

I want to deploy a WAR to multiples tomcat servers (they may change) and do this from a java project. I've searched and i find cargo, but in cargo i need to know all the servers were i want to deploy my WAR and create a config file with them. The…
2
votes
3 answers

Howto use Maven Cargo Plugin to deploy a Web Application Bundle (WAB, OSGI + JavaEE) into Glassfish 3.x

I'm trying to use the Maven Cargo Plugin to deploy a set of OSGI bundles and an hybrid application .war (Webapplication with Restservice which uses OSGI) also called a Web Application Bundle (or WAB) (e.g. see…
2
votes
1 answer

Approach for system testing using maven, cargo, jetty and HSQL

I have been trying to get some Selenium system test cases to run during the integration-test phase. I want Cargo to deploy the WAR to a local Jetty installation. Then I want my test cases to run, using test versions of Spring configuration files.…
Lonnie Lewis
  • 65
  • 1
  • 6
2
votes
0 answers

Cargo deploy ROOT.war in a remote server

I am trying to do a remote deploy on a running tomcat 5.5.27 using cargo plugin On the build server in run mvn -P rdeploy-staging clean package cargo:redeploy There is no error on console, but the app does not start on tomcat, it should be started…
2
votes
0 answers

Use tomcat7x when binding Cargo start/stop goals to Maven integration-test phases

I have successfully configured Cargo in my pom.xml to start tomcat7x when executing the 'mvn cargo:run' command. This is the Cargo plugin configuration I used: org.codehaus.cargo
mcorrigal
  • 101
  • 1
  • 1
  • 5
2
votes
1 answer

How do I add a folder to the classpath of a Tomcat container being started by the maven cargo plugin

I am using the cargo-maven2-plugin to start and stop a tomcat container from my maven build. I am able to get this working for my application including the deployment of extra jar files not included in the war. However, the war file I am deploying…
Gary
  • 6,357
  • 5
  • 30
  • 36
1
vote
1 answer

Deploying with cargo and an invalid SSL certificate

My test Tomcat 6 server has a self signed certificate. The manager webapp is accessible only via SSL, with this self signe certificate. When I try to deploy with the cargo-maven2-plugin, I get the error…
Guillaume
  • 18,494
  • 8
  • 53
  • 74
1
vote
1 answer

Cargo maven plugin - start goal ignores configuration, "run" works fine

I want cargo maven plugin to start a Tomcat7 so i put into my pom: org.codehaus.cargo cargo-maven2-plugin 1.2.0