Questions tagged [maven-cargo]

A Maven plugin that allows you to interact (start, deploy, stop, ...) with common J2EE servers.

Cargos

Cargo is a thin wrapper that allows you to manipulate Java EE containers in a standard way.

Official site : http://cargo.codehaus.org/Home

140 questions
3
votes
1 answer

maven cargo: not deploying with running test

My integration pom.xml looks like com.org.me_services.inventory services 1.0-SNAPSHOT war
3
votes
1 answer

How to deploy remotely EAR to JBoss 5.1.0.GA using Cargo maven plugin?

Has someone successfully deployed EAR remotely to JBoss 5.1.0.GA? My pom.xml configuration is as follows: org.codehaus.cargo cargo-maven2-plugin 1.0.1-SNAPSHOT
tputkonen
  • 5,579
  • 16
  • 60
  • 88
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
2 answers

cargo-maven2-plugin does not wait for jboss as7 to start before executing integration tests

I have not been able to get a successful Maven pom.xml configuration to start JBoss AS 7, deploy a war artifact, and have it wait until the artifact has been successfully deployed before starting to run integration tests. I've already…
Chris Phillipson
  • 795
  • 1
  • 15
  • 34
2
votes
2 answers

Start Tomcat with Maven Cargo without stop when Maven is finish

Is ist possible to Start a Tomcat with Maven without stopping Tomcat after Maven has finished?
user1127860
  • 150
  • 2
  • 14
2
votes
0 answers

How do I profile an embedded jetty container?

As part of my build, we use cargo-maven2-plugin to launch a jetty container with our app. Intermittently, we get the result "Failed to start the Jetty 6.x Embedded container." We're bumping up against the default 120 second timeout. We're using a…
VoiceOfUnreason
  • 52,766
  • 5
  • 49
  • 91
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
2 answers

Hudson Deploy error on Tomcat 7

I am deploying a WAR file with Hudson 2.1.2 Post Maven Build which fails with this error message. I have the Hudson deploy plugin installed Deploying C:\Users\Admin\workspace_astra\astra-maven\target\astra-maven-0.0.1-SNAPSHOT.war to container…
2
votes
0 answers

How to save only the war file in artifacts between 'mvn deploy' (to nexus) and 'mvn cargo:deploy'

My .gitlab-ci.yml file has the following cache and stages defined cache: key: ${CI_COMMIT_REF_SLUG} paths: - .m2/repository/ - target/ policy: pull-push stages: - build - nexus - deploy-test - deploy-prod The 'build'…
Fred
  • 335
  • 1
  • 6
  • 22
2
votes
2 answers

How do I configure Maven Cargo to use an embedded Tomcat 6 server?

I'm using Maven 3.0.3. Is there a way I can use the Maven Cargo plugin to spin up an embedded Tomcat server? Right now, it seems I have to install it myself first. I get this error when I try and change the container type to "embedded"…
Dave
  • 8,667
  • 25
  • 72
  • 90
2
votes
0 answers

Codehaus Cargo missing logging subsystem

I have an issue with running tests with Codehaus Cargo v18. Though Wildfly 18.0.1 allows me not to have the logging subsystem in the standalone.xml - so I can put all the logging conf in the logging.properties, Cargo v18 fails on deploying when I…
LoreV
  • 575
  • 5
  • 25
2
votes
2 answers

Error: Could not find or load main class org.apache.catalina.startup.Bootstrap

I'm using cargo-maven2-plugin to run tomcat for integration tests. It worked fine when 7x container is used. I recently upgraded it to 9x and it works fine on a Ubuntu/Linux machine but doesn't work on a Mac (running the latest OS version). When I…
Jawaan Jahaan
  • 41
  • 1
  • 5
2
votes
1 answer

remote deploy on tomcat with CARGO fails with TIMEOUT

I'm running into a problem when doing a remote deploy with cargo-maven2-plugin (1.0.6). The war I'm deploying is rather large and the default 20 seconds are not enough to do the full deploy. The actual exception is (after 20 seconds): Failed to…
Eugen
  • 8,523
  • 8
  • 52
  • 74
2
votes
2 answers

Howto pass Java system properties to maven-cargo container

I'm preparing a maven2 web project for continuous integration. I use the maven cargo plugin to automatically deploy the WAR to Tomcat6x before running integration tests. My code depends on some system properties which are set with…
Olvagor
  • 2,332
  • 5
  • 25
  • 26
2
votes
1 answer

How properly to set up tomcat logs into Maven Cargo Plugin

I'm trying to use Tomcat 8 with Maven Cargo Plugin. Developing I'm introduced an error, but error logs are not printed by Tomcat. How can I specify to print error log? As you can see into my pom.xml file I've tried to configure something but it…
firegloves
  • 5,581
  • 2
  • 29
  • 50
1 2
3
9 10