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
0
votes
2 answers

Cargo start up error

I am running 'mvn clean install -Dmaven.test.skip=true' command for a web application. but it gives following error. I set the catalina home as an environment variable. i am using maven 3.1.1 version. Please help me FATAL ERROR in native method:…
user2622132
  • 49
  • 1
  • 3
  • 11
0
votes
0 answers

best way to refer to war files using gradle cargo plugin

I'm working on a gradle build which builds several war files and publishes them to the local maven repo. In another project I want gradle to deploy all the new war files to a tomcat server and then run webetsts against them. I have it working but…
user2193122
  • 23
  • 1
  • 6
0
votes
1 answer

Use gradle plugin cargo to deploy to tomcat manager with non-standard name

For security reasons we have to rename our manager app in tomcat. I am trying to deploy war files using cargo. I can get it to work when I rename the manager app back to its original name but I can't find a configuration option that would allow me…
user2193122
  • 23
  • 1
  • 6
0
votes
1 answer

Fixing the padding and keeping it consistent

I'm working on my cargo collective website (http://www.omarayoub.com) and I'm trying to keep the top padding consistent across the different sections and pages. My goal is to make the top padding of an image (or a headline) to be exactly 25px. This…
Omar
  • 39
  • 7
0
votes
1 answer

Using Cargo how to make Glassfish create tables without modifying the original EAR

How do you make Cargo maven plugin create tables on an embedded database using the Glassfish container. without modifying the original EAR? If it was using asadmin, the --createtables=true can be added to create the tables on deployment. At the…
Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265
0
votes
1 answer

Configuration class not found for WebLogic local standalone with cargo maven plugin

I recently discovered Cargo and am really excited about its potential for allowing developers to consistently and automatically test web artifacts using maven -- but I am having trouble getting it configured correctly. For better or worse, we are a…
vacao
  • 153
  • 2
  • 11
0
votes
1 answer

Maven cargo uberwar : how to exclude a dependancy

I'm trying to use the Maven cargo uberwar plugin. I would like to do that : org.codehaus.cargo cargo-maven2-plugin
flow
  • 4,828
  • 6
  • 26
  • 41
0
votes
1 answer

Cargo unable to set the system properties values during bean injection

What I am trying to do? - For testing, I want to set serverKey and validity for my application and want cargo to inject into TokenUtils, so these values are available when the application is loaded What I have tried? I am using JBoss as Container…
daydreamer
  • 87,243
  • 191
  • 450
  • 722
0
votes
0 answers

Removing fixed footers, removing "Open in New Window"

I would like to remove the fixed footers in both my Cargo and my Tumblr. I want them to be at the bottom of the page when you scroll down, and that's it. When you click on "Blog" in the top left menu in both Cargo and Tumblr, it always opens it in…
Omar
  • 39
  • 7
0
votes
1 answer

Project deployment on remote via Cargo maven plugin

I'm trying to deploy a servlet project using cargo plugin. pom.xml file: ... org.codehaus.cargo cargo-maven2-plugin
tokhi
  • 21,044
  • 23
  • 95
  • 105
0
votes
1 answer

Check war file before deploy / conditional deploy

When using cargo to deploy to a remote server I would like to check with cargo or maven that the generated war have it's properties files filtered like expected. Some phase in between should test a property file from war against some strings and so…
Ruben Trancoso
  • 1,444
  • 5
  • 27
  • 55
0
votes
2 answers

What is the easiest way to start tomcat in embedded mode from the cargo-maven2-plugin?

I have defined tomcat:catalina:5.5.23 as a dependency to the cargo plugin, however I still get the following exception: java.lang.ClassNotFoundException: org.apache.catalina.Connector at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at…
npellow
  • 1,985
  • 1
  • 16
  • 23
0
votes
1 answer

Anyone know how to customize the servlet port for an embedded JBoss container using Maven Cargo?

I"m using Maven 3.0.3 with the Cargo 1.3.3 plugin. I'm trying to configure an embedded JBoss 7.1 container. I would like to customize the port on which JBoss listens for requests, normally 8080. However, I can't seem to customize it, using the…
Dave
  • 15,639
  • 133
  • 442
  • 830
0
votes
1 answer

How do I separate configuration for maven command line mojo invocation from global plugin configuration?

I'm using the cargo plugin to deploy my app to a remote server during the build. To do this, I have a configuration element for the cargo plugin. Since there are two executions that use this single configuration, I use a global configuration…
chad
  • 7,369
  • 6
  • 37
  • 56
0
votes
1 answer

Replicating Cargocollective jquery/lightbox

I have a site on cargocollective from a very long time ago. http://cargocollective.com/ruimelo And I'm in the process of building a new one not using Cargo, however I like the way Cargocollective displays work in this theme. Whereas each piece is…
user1556266
  • 5,373
  • 3
  • 14
  • 5