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

Error invoking command! when deploying war to WebSphere Liberty server using Maven Cargo

I'm currently trying to deploy a war file to a Websphere Liberty server. integration org.codehaus.cargo
Spinners
  • 1
  • 6
0
votes
1 answer

Cargo Maven plugin Token Replacement

I am using cargo-maven plugin and I am trying to use token replacement feature of the plugin. Somehow its not working for me. I think I dont know how to represent token so that cargo can replace it with the value. Here is my plugin config …
Sahil
  • 121
  • 9
0
votes
2 answers

cargo-maven2-plugin:start fails with "Actually there are no valid types registered for this configuration", regardless of what containerId I enter

I'm trying to run integration tests with the cargo-maven2-plugin and Tomcat 8. I want the Maven build to start the container for me, so I have configured the start and stop goals as documented here. The problem is that regardless of what I enter as…
oberlies
  • 11,503
  • 4
  • 63
  • 110
0
votes
0 answers

Tomcat deleting important folders referenced by a symlink inside webapps

I have a maven application running on tomcat, I start it using cargo: mvn cargo:run Inside the webapps folder, there is a symlink that points to an important folder: ls /usr/local/Cellar/tomcat/8.0.15/libexec/webapps/ROOT/WEB-INF/views admin 898…
0
votes
0 answers

cargo-maven2-plugin debug timeout

I am attempting to debug a WAR in a cargo-maven2-plugin container. standalone ${project.build.directory}/tomcat8x/apache-tomcat-${tomcat.version}/container
cbm64
  • 1,059
  • 2
  • 12
  • 24
0
votes
1 answer

Can't enable gradle cargo plugin - failing dependencies

I have the following in my build.gradle: buildscript { repositories { jcenter() mavenCentral() maven { url 'http://dl.bintray.com/content/noamt/gradle-plugins' } } dependencies { classpath…
Clark Richey
  • 382
  • 1
  • 10
0
votes
1 answer

Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.0:run

I'm using javaee7 sdk from oracle. I have faced a problem. When I enter mvn cargo:run, it stoped at Resolved container artifact org.codehaus.cargo:cargo-core-container-glassfish:jar:1.4.0 for container glassfish4x for a long time. And at last, some…
0
votes
1 answer

Prevent Cargo from forking for debugging OR enable debugging with extra jvm parameters

Top of the day, good people! I use Hippo CMS that uses cargo maven plugin to run the app in Tomcat. Since recently, due to the increased size of the repository and an update to new version, my trusted command mvn -Pcargo.run…
Nestor Milyaev
  • 5,845
  • 2
  • 35
  • 51
0
votes
1 answer

Cannot access cargo property in Glassfish container when type is "remote"

I am following the instructions here to try to pass in a custom property to my glassfish 4 container. https://codehaus-cargo.github.io/cargo/Passing+system+properties.html I have it set up in my pom as:
vanval
  • 997
  • 1
  • 9
  • 19
0
votes
1 answer

Deploy war from a repo onto remote server

How can I deploy a war using gradle that has been previously published onto maven repo onto one of the web servers? Does cargo plugin for gradle facilitates it? Can I have multiple remote environments (DEV/TEST/PROD)? I have been using cargo to…
karruma
  • 768
  • 1
  • 12
  • 32
0
votes
1 answer

JBOSS Remote Backup of Application

Does JBoss support downloading the deployed application remotely using Web console or Jmx operations? Like for websphere we have options for extracting the deployed application using admin console. I am looking for a Job do deploy the application to…
0
votes
1 answer

Can I redeploy to remote Tomcat instance and start local testing instance

I'd like to start a new local Tomcat instance for testing purposes during the Maven's pre-integration-test phase (on different port) and run tests there. Then if the tests pass I'd like to do a cargo:redeploy to a remote Tomcat instance. I'm having…
burm
  • 93
  • 11
0
votes
0 answers

Tomcat CMS PermGen keeps growing with cargo deployment and hangs at 100%

So my Tomcat CMS PermGen keeps growing 20-30MB when a new .war file is deployed. At 99% PermGen the deployer (https://codehaus-cargo.github.io/) will just get stuck, until I restart Tomcat and cancel the Maven build. I have tried JVM options like…
Jelle den Burger
  • 1,428
  • 17
  • 31
0
votes
1 answer

Does Cargo support WebSphere Liberty?

Does Cargo support WebSphere Liberty? I find the Cargo page for WebSphere inconclusive.
wilx
  • 17,697
  • 6
  • 59
  • 114
0
votes
2 answers

Pointers on how to to get a test jar to run a separate war for testing (perhaps with cargo?)

Let me explain some of my constraints. We have a war that has a CXF Soap service and a Spring MVC REST Service. Both the CXF and Spring MVC implementations are in a separate jar and are brought in as dependencies. The REST service has its unit tests…
AHungerArtist
  • 9,332
  • 17
  • 73
  • 109