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

Cargo copying of Config files not working

So, what I am trying to do is to automate my JMeter testing process, and for this I use Cargo to deploy to a Tomcat container and run the JMeter scripts there and am using a pom based on what is described in:-…
Praveen Thirukonda
  • 365
  • 1
  • 4
  • 16
3
votes
1 answer

Where can I find a complete Maven Cargo plugin example for EJB tests?

For tests of some small JBoss enterprise apps I would like to use JUnit, and the Maven Cargo plugin. (I know that there is also JSFUnit but first I would like to take a closer look at Cargo.) Is there a simple example available online which I could…
mjn
  • 36,362
  • 28
  • 176
  • 378
3
votes
4 answers

Redeploy remote glassfish with cargo fails

I'm currently trying to use cargo to deploy an application on a remote glassfish 3.1.2 through atlassian's bamboo. This is a development environment so the same application with a different version number will be deployed on the same context root…
ufasoli
  • 1,038
  • 2
  • 19
  • 41
3
votes
2 answers

Cargo not working over proxy integrated with maven 2

I have integrated Cargo plugin in my maven 2 project POM.xml. During hot deployment I am unable to connect to my Tomcat container that is available across a proxy. My maven settings.xml already contain proxy setting but cargo is not picking it up. I…
Ashish Sharma
  • 1,124
  • 2
  • 24
  • 49
3
votes
1 answer

Attempting to setup/use mysql datasource with glassfish (using Cargo and Maven). How to deploy mysql connector?

Good evening! Using Cargo via Maven, I've configured my pom.xml to create an instance of glassfish and then deploy my project to it, before running integration tests. I'm most of the way there, in that I've got my code deployed, I've setup a…
Steven Bakhtiari
  • 3,227
  • 2
  • 20
  • 24
3
votes
1 answer

How to connect to remote server and start/stop the Tomcat that's running on that particular server using Ant?

The purpose is to: 1: connect to a remote server maybe via host: ip , port: 8181 2: stop Tomcat that's running on that server 3: deploy a .war file 4: restart tomcat
Simple-Solution
  • 4,209
  • 12
  • 47
  • 66
2
votes
1 answer

Maven: How do I configure tests to run in integration-test phase?

I'm using Maven 3.0.3. I want to run some Junit tests in my test phase and others in my integration-test phase. Problem is nothing is running during the integration-test phase. I run the command mvn clean install to kick everything off. Here is…
Dave
  • 15,639
  • 133
  • 442
  • 830
2
votes
0 answers

Building binary dependencies with a package

I have the following workspace layout: . ├── Cargo.lock ├── Cargo.toml ├── cli │   ├── Cargo.toml │   └── src │   └── main.rs ├── helper │   ├── Cargo.toml │   └── src │   └── main.rs └── worker ├── Cargo.toml └── src └──…
s0me0ne
  • 504
  • 2
  • 9
2
votes
1 answer

How to get the module tree?

I type the command 'cargo tree' at the terminal,but the output does like the below! please help me,thank you! the expect output but my output likes this: /Users/antsing/Desktop/rust_project_dir/7_manage_grow_project/restaurant (base) ➜ restaurant…
antsing
  • 23
  • 3
2
votes
1 answer

How to add dependencies to workspace.dependencies using `cargo add`

Is it possible to instruct cargo to add a dependency to a workspace manifest? My repo is composed of a workspace w/ multiple packages. It looks something like Cargo.lock Cargo.toml package_1/ Cargo.toml src/ package_2/ Cargo.toml …
jonasty
  • 51
  • 5
2
votes
0 answers

How to make Cargo use a patch path for all nested dependencies during cargo build?

I have a Cargo.toml as below: [dependencies] a = "x.x.x" b = "y.y.y" c = "z.z.z" There is a local change made in dependency a, hence updated above manifest to use the local path using a = { path = "/mypath" } This works fine and a picks up the…
NamrataB
  • 283
  • 2
  • 15
2
votes
1 answer

Cargo project with library + multiple binaries, with binaries consisting of multiple files?

The Cargo book describes how to have a library and multiple executable in a single Cargo project. I'd like to have an executable consist of multiple source files that are specific to that executable and not in the library. For example src/lib1.rs,…
user1002430
2
votes
1 answer

Relink after editing intermediate assembly files

We can pass a flag to Cargo that is in turn passed to rustc to emit intermediate assembly files for the whole contents of a crate: $ RUSTFLAGS="--emit=asm" cargo rustc --release After running this, indeed we can see a whole lot of .s files under…
Cactus
  • 27,075
  • 9
  • 69
  • 149
2
votes
2 answers

Why does a borrowed variable not change when the borrowed from variable changes?

I'm new to rust and trying to understand the borrowing principle. I have the following code: fn main() { let number_list = vec![34, 50, 25, 100, 65]; let largest_nbr = &number_list[0]; println!("The largest number is {}",…
BonisTech
  • 342
  • 3
  • 15
2
votes
0 answers

Cargo Rust , Linking with `cc` failed with exit status 1, on Mac OS M1

Getting issue while using vrf crate ,cannot link symbols to Open ssl Fast and extensible Verifiable Random Function (VRF) library; **Steps tried : ** brew install openssl brew unlink openssl && brew link openssl --force cargo clean, cargo cache…
user20398843