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
1 answer

Configure maven cargo plugin jetty container for static content

I need to configure jetty running from the maven cargo plugin to point it at static content, Ive looked through the jetty documentation and I cant see how to apply the configuration to jetty when it is running as part of cargo. I want to configure…
berimbolo
  • 3,319
  • 8
  • 43
  • 78
0
votes
2 answers

Cannot deploy locally using Cargo plugin for Gradle

I'm having some problem to deploy a Java application using Cargo plugin for Gradle. I've tried to add commons-discovery and commons-logging as dependencies but it didn't work as well. :build :copyWarToTomcat :removeSymLinks :removeExplodedWar…
Lucas Beier
  • 621
  • 1
  • 7
  • 19
0
votes
1 answer

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 org.codehaus.cargo cargo-maven2-plugin 1.0.2
Fayway
  • 15
  • 5
0
votes
1 answer

The type doesn't support the nested "mkdir" element

All of sudden I am seeing cargoRunLocal task fail for my gradle-cargo-plugin based project. I cant see why. I have not changed my gradle config AFAIK. Anyone have suggestions? [LIFECYCLE] [class org.gradle.TaskExecutionLogger]…
Farrukh Najmi
  • 5,055
  • 3
  • 35
  • 54
0
votes
1 answer

Maven Cargo deployment to remote JONAS fails on already autoloaded war

Here is the sequence of actions that leads to deployment failure : I deploy for the first time a war called xxx.war, through Cargo, to a remote JONAS 4.7.4. It succeeds, and put my war in webapps directory. I try to redeploy this war through Cargo…
sch
  • 11
  • 4
0
votes
1 answer

How do I start and stop a Cargo container using M2Eclipse?

To run my Maven application in Windows, I start the Cargo container with this command: C:\code\myapp> mvn -P cargo.run Then I use Ctrl-C to stop the Cargo container. I want to do the same thing in Eclipse. I've created a run configuration for…
Big McLargeHuge
  • 14,841
  • 10
  • 80
  • 108
0
votes
1 answer

Deploy as ROOT and SpringLoaded Hippo CMS

Spring Loaded has been working fine for me until I recently switched to deploy as root. (to completely get rid of the "/site" in the URLs of my website) I've modified the original config brought up by Jeroen here but it's not working. (The files…
ericn
  • 12,476
  • 16
  • 84
  • 127
0
votes
1 answer

Cargo use installed container (Local "C:\tomcat) instead of AppData/Local/Temp

I want to use local tomcat container which is already installed in c:\tomcat instead of cargo downloading container automatically in temp folder. Please help me here. What am i doing wrong? Here is my build.gradle so far group = "com.biw.hc" version…
0
votes
2 answers

Use Maven to Edit the standalone.xml When Starting Wildfly

I have set up a Maven project that starts up a standalone Wildfly container using Cargo, but in the process of adding some new features, I need to add some content to the standalone.xml. (Specifically, a security realm.) This seems like it should…
Alex N.
  • 654
  • 8
  • 21
0
votes
1 answer

Can I host a container zip on a nexus server for Cargo?

We are successfully using the cargo-maven2-plugin with both Jetty and Tomcat containers. Unfortunately our external internet connection is unstable, so we have failing builds because cargo cannot access the external url to obtain the container…
Forge_7
  • 1,839
  • 2
  • 20
  • 19
0
votes
1 answer

gradle cargo plugin offline

I'm new with gradle and I didn't understand how the plugin works. I'm trying to use cargo plugin without use maven repository but downloading the jar file from http://mvnrepository.com/artifact/cargo/cargo/0.6 and put it into my lib folder. my build…
carlitos081
  • 151
  • 1
  • 13
0
votes
1 answer

Is there a way to deploy using Cargo to a JBOSS server, while serving the release from Nexus?

I understand how to use Cargo with Maven to deploy to a remote JBOSS server, however this assumes that I'm actively building. In my specific case, I've already built the application, and have pushed it to a Nexus repository. Is there a way to…
Chris King
  • 63
  • 7
0
votes
1 answer

JMS config settings for jetty deployment using cargo

We have a current web application that is deployed to OAS (Oracle Application Server). I am trying to implement some functional tests using selenium for this application. I created a new maven project specifically for functional testing, which uses…
Rahul Nair
  • 125
  • 2
  • 8
0
votes
1 answer

Maven deployment with Cargo plugin - Invalid property for deployable

The deployment to the Glassfish server fails because the Cargo plugin has an invalid property. I have a multi module Maven project with this parent pom:
Philipp
  • 75
  • 2
  • 9
0
votes
0 answers

Cargo deployment to Glassfish3.x

Is there anyway with Cargo deployment to deploy to a specific Glassfish virtual Server? I am using Gradle and all works welland deploys... but I have about 10 virtual servers under my GF domain and my application gets deployed to all of…