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

Using cargo to deploy war to remote Jboss7 server

I would like to use Cargo to deploy my maven generated war file to a remote JBoss Server that is already running. I have configured my pom.xml like this: ... org.codehaus.cargo
Jens
  • 6,243
  • 1
  • 49
  • 79
0
votes
1 answer

Cargo run / start not working, missing Ant dependency?

I've been trying to set up the cargo-maven2 plugin (although I am using Maven 3; and this is supposed to be ok) so that I can start a container during the pre-integration-test phase and shut it down in the post-integration test phase. I'm having no…
Kent Rancourt
  • 1,555
  • 1
  • 11
  • 19
0
votes
1 answer

Running Cargo From Maven antrun Plugin

I have a maven (multi-module) project creating some WAR and EAR files for JBoss AS 7.1.x. For one purpose, I need to deploy one generated EAR file of one module to a fresh JBoss instance and run it, call some REST web service calls against it and…
Frank
  • 423
  • 1
  • 7
  • 13
0
votes
1 answer

maven cargo integration test - how to get cargo.hostname or profile?

I'm using Maven 2 w/ cargo to deploy to different remote tomcats depending on the maven profile used. I also have integration tests (junit w/ remote webservice calls) that I would like to automatically run. Question: How do I setup my test code to…
dhartford
  • 1,125
  • 2
  • 12
  • 35
0
votes
1 answer

Could not automatically start jboss via Cargo using Ant?

Am kind of stuck in trying to start JBoss automatically from Ant script with the help of Cargo open source project. Am getting this error shown underneath. Many Thanks! taskdef:
Simple-Solution
  • 4,209
  • 12
  • 47
  • 66
0
votes
2 answers

Calculating truck cargo capacity in a game

This is more of a math/algorithm question than a programming question, but I hope you guys can help anyway. Scenario #1: Player 1 has 40 crates in his inventory. Player 1 has 2 trucks, 1x small (capacity: 8 crates) 1x medium (capacity: 16…
zardon
  • 2,910
  • 6
  • 37
  • 58
0
votes
1 answer

Maven: Can't Launch Plugins on JAR project in pre-integration-test and post-integration-test phases

I am writing a JAR file that acts as a client to the Jenkins CI webapp. Therefore, my project has jar packaging, not war packaging. However, for integration testing, I need to deploy the Jenkins WAR to test my JAR classes against. I am using the…
-1
votes
1 answer

Is it possible to share functions between two Rust libraries with Cargo without making them public?

Is it possible to share functions between two Rust libraries, but not make them public, ie visible from binaries? For example, I have two libraries. Lib A contains two functions, one of which is public, the other is not (f1) Lib B can use the…
FreelanceConsultant
  • 13,167
  • 27
  • 115
  • 225
-1
votes
1 answer

I am trying to use spa in actix_web_lab but it seems there is import error

error[E0432]: unresolved import `actix_web_lab::web::spa` --> backend/src/main.rs:14:5 | 14 | use actix_web_lab::web::spa; | ^^^^^^^^^^^^^^^^^^^^^^^ no `spa` in `web` For more information about this error, try `rustc --explain…
-1
votes
1 answer

Running cargo test errors with "please recompile that crate using this compiler"

My Cargo.toml file looks like this: [dependencies] unicode-segmentation = "1.10.0" [package] edition = "2021" name = "reverse_string" version = "1.2.0" There is a dependency of unicode-segmentation. I am using rustc 1.64 and when I run cargo test,…
dagda1
  • 26,856
  • 59
  • 237
  • 450
-1
votes
1 answer

Making Image hover over another Image

I am quite new to this game and seing as I am the creative director and designer of my new start up, it is on me to build our homepage. I use Cargo Collective as a host, and I have managed to figure it all out until now. I am looking at a problem…
-2
votes
2 answers

In the rust test, I don't care about the sequence of vec![]. What should i do?

enter image description here Is there any disorderd arrays Or Do not judge the order when asserting?
yhw2003
  • 13
  • 1
-2
votes
2 answers

Internal dependency issue in Rust

I am trying to run a rust application but some internal dependency issue is breaking, I am new to rust so struggling to fix it. This is the issue.
-2
votes
1 answer

Gradle exception for cargo plugin

My build.gradle is: buildscript { repositories { jcenter() } dependencies { classpath 'com.bmuschko:gradle-cargo-plugin:2.0.1' } } apply plugin: 'com.bmuschko.cargo' cargoRunLocal is not working. It shows exception…
Priya
  • 11
  • 2
-2
votes
1 answer

Facebook like is broken, adds a trailing # to the final url

I'm running my site on Cargo Collective and trying to have likes per page. I cannot modify the code in the head tag only within the body tag. When i debug a page i get the following; Response Code 206 Fetched URL…
iamneuron
  • 11
  • 3
1 2 3
21
22