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

Cargo plugin throws CargoException when deploying on Glassfish - Deployment has failed: null

I'm trying to deploy web application using Cargo Maven plugin on remote Glassfish server (Edition 3.1.1 (build 12)). Glassfish server as well as Java code located on different Linux servers (Ubuntu). I've configured all necessary properties in pom…
Andrey
  • 541
  • 3
  • 5
11
votes
2 answers

Maven Cargo does not stop the container

I have a maven project where I want to use the Cargo-Maven-Plugin (1.1.1) to start and stop a tomcat server to run integration…
Ralph
  • 118,862
  • 56
  • 287
  • 383
9
votes
3 answers

Is it possible to supply Tomcat6's context.xml file via the Maven Cargo plugin?

I'd like to keep Tomcat's context.xml file out of my WAR file's META-INF directory if possible. Can this be done with Maven's cargo plugin? I can't seem to find the correct configuration.
Dave
  • 21,524
  • 28
  • 141
  • 221
8
votes
1 answer

How to set cargo unstable options for a target?

I have .cargo/config.toml with following: [unstable] unstable-options = true build-std = ["core", "alloc"] But I need build-std only for one target (e.g. thumbv7em-none-eabihf). Is there any way to declare it specifically for a target? It could be…
Alex Koz.
  • 490
  • 8
  • 26
8
votes
2 answers

GlassFish 3 + Maven + remote deploy

I couldn't find any clear answer about how to deploy simple Maven based project to remote GlassFish server via maven like mvn package xxx:deploy I think only cargo plugin supports GlassFish 3. Right? I've problems at configuration side. Any sample…
Lurtz
  • 429
  • 2
  • 8
  • 17
8
votes
2 answers

Local debugging application launched on tomcat with cargo in IntelliJ

I am trying to enable debugging in my cargo configuration. I'm using cargo-maven2-plugin version 1.4.19 with the following configuration. org.codehaus.cargo
Pablo Jomer
  • 9,870
  • 11
  • 54
  • 102
8
votes
2 answers

"XNIO001001: No XNIO provider found" error when deploying to Wildfly using Cargo Java API and Jenkins

I am working on a Jenkins plugin which manages the deployment of EAR files to Java EE containers using the Codehaus Cargo Java API, however I've hit an issue when using the API to deploy to a remote Wildfly container. The code works fine when…
Paul H
  • 2,104
  • 7
  • 39
  • 53
8
votes
1 answer

Cargo Cannot deploy to remote tomcat 8 with using cargo-maven-plugin

I am trying to deploy war on tomcat8 using cargo plugin my entry is as follows: org.codehaus.cargo cargo-maven2-plugin 1.4.8
dhiraj singh
  • 101
  • 1
  • 8
8
votes
1 answer

Using Gradle Cargo plugin to deploy to multiple environments

I am trying to have multiple Gradle tasks in my build.gradle file to deploy a war to different environments. I want to be able to have a deployToLocal task along with deployToQA and deployToDev, after a war file has been generated. Of course, this…
Deb Dey
  • 325
  • 2
  • 5
  • 10
6
votes
2 answers

How to cleanly stop m2e cargo:run from Eclipse?

Using the run mojo from the cargo-maven2-plugin I would like to know of a better way to shut down the container. The console output says Ctrl+C to stop, but that seems to do nothing. If I terminate, it leaves an orphan java.exe process that I have…
Doug Moscrop
  • 4,479
  • 3
  • 26
  • 46
6
votes
1 answer

How do I override a Maven Plugin's log4j Configuration?

I'm using the Cargo Maven plugin to deploy a WAR to a remote server, and I'm having problems. I'll probably create a second question for that problem, but this one is about overriding a Maven plugin's log4j configuration. Cargo uses JBoss' client…
6
votes
1 answer

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:…
reef
  • 1,813
  • 2
  • 23
  • 36
5
votes
1 answer

How to permanently set env across every session in fish shell?

I install the cargo building environment. I use cargo install exa to install exa (an alternatives of command ls). Executable file is put in $HOME/.cargo/bin. I use fish shell set -gx PATH $PATH $HOME/.cargo/bin, and then I can use command exa on…
mariolu
  • 624
  • 8
  • 17
5
votes
1 answer

How to run embedded Tomcat 9 inside Maven 3 for integration testing purposes?

I am trying to run embedded Tomcat 9 inside Maven 3 for integration testing purposes. I was led to cargo-maven2-plugin by other SO answers. So, attempting to follow the instructions found…
Alex R
  • 11,364
  • 15
  • 100
  • 180
5
votes
3 answers

changing maven cargo plugin deployment path

I want to have my integration test hit cargo's tomcat at http://localhost:8080/messaging but cargo (cargo-maven2-plugin:1.0.5) prefers to deploy my messaging project as /messaging-0.0.7-SNAPSHOT, as seen in the tomcat admin console and in the…
dols
  • 733
  • 8
  • 16
1
2 3
21 22