Questions tagged [cargo-maven2-plugin]

`cargo-maven2-plugin` (official name) is the Maven2 plugin for Cargo that allows you to interact (start, deploy, stop, ...) with the most common J2EE servers.

Cargo is a thin wrapper that allows you to manipulate various type of application containers (Java EE and others) in a standard way.

Cargo is often used to deploy applications to containers from test APIs (such as JUnit), ANT or Maven builds. Cargo can install the container and dependencies needed for your deployment as well.

The Maven2 plugin is generally more straightforward to use and integrates better with the whole build process (with profiles, easier to use deployer, proxy server support, etc.)

Reference :

http://cargo.codehaus.org/Maven2+plugin

44 questions
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
2
votes
1 answer

Tomcat download issue in Cargo Container in Jenkins

I am facing below error in Jenkins (I am using cargo plugin with tomcat for integration tests). [2021-07-20T09:46:47.790Z] [ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.7.9:start (start-server) on project…
Abhi
  • 614
  • 2
  • 12
  • 26
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
0 answers

cargo-maven2-plugin execution start container failed

I am trying to configure the cargo-maven2-plugin to start my local install of Glassfish 4.1. I have the following configured in my pom.xml org.codehaus.cargo
PDStat
  • 5,513
  • 10
  • 51
  • 86
2
votes
2 answers

Using cargo maven plugin to start the server without artifact deployment

I'm trying to use the cargo maven plugin just to start a JBoss AS 7 server from maven, without executing any deployments. I'm able to start the server but as I can read in cargo pluging documentation the goals cargo:run and cargo:start will deploy…
yersan
  • 332
  • 1
  • 2
  • 13
1
vote
0 answers

When I do "mvn verify", I cannot get the spring-boot project to load the application properties

My project is on an isolated computer, so I can't do massive dumps of files, but I will try to provide the necessary information. I have a Spring-Boot MVC project. I can get it to run fine from the command line. I can get the ApplicationContext to…
1
vote
0 answers

Multiple wars with cargo plugin

I am using such config in root POM.xml store com.x war
Arthur
  • 1,156
  • 3
  • 20
  • 49
1
vote
0 answers

Issue trying to deploy to a remote container using Maven2, Cargo and Jetty 6

I am trying to deploy a war module (part of a multi module project) to a remote Jetty 6.0.1 container using Cargo 1.0.5, when I do mvn org.codehaus.cargo:cargo-maven2-plugin:1.0.5:deploy (mvn cargo:deploy can't find the plugin for some reason) I…
Rafael
  • 572
  • 5
  • 9
1
vote
1 answer

jenkins selenium tests ci

I have created a Jenkins maven task to run selenium tests on one project, and now I want to use these selenium test in a proper way for CI. Actually, I have a Jenkins task which 1-builds the project, 2- uses sonar, 3 - deploys the project. I would…
1
vote
2 answers

java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String when deploying to Tomcat in cargo

I am having issues deploying a web application on an embeded Tomcat 7 with the maven-cargo-plugin. I created a new maven profile in the webapps pom that creates a Tomcat container via the maven-cargo-plugin and then executes a soapui test case via…
1
vote
2 answers

ClassNotFoundException: oracle.jdbc.OracleDriver when running tests using cargo maven2 plugin

I'm trying to run some functional tests on the cargo maven2 plugin.These tests run fine on the local tomcat server when launched without using the cargo maven2 plugin. The plugin itself boots successfully but when I run the tests they return 500…
linuxNoob
  • 600
  • 2
  • 14
  • 30
1
vote
0 answers

Gradle Cargo deployment to Weblogic

I am trying to deploy remotely to Weblogic server an artifact. Those are my parts of build.gradle apply plugin: 'com.bmuschko.cargo' apply plugin: 'com.bmuschko.cargo-base' buildscript { dependencies { …
karruma
  • 768
  • 1
  • 12
  • 32
1
vote
1 answer

integration test with cargo-maven2-plugin have memory leak during the stop

Hy everyone, I use the plugin cargo-maven2-plugin to run my integration test on tomcat 8 (waiting the tomcat8-maven-plugin) Unfortunetly, I've this stack when I stop the container: The web application [sportInfo] appears to have started a thread…
sab
  • 4,352
  • 7
  • 36
  • 60
1
vote
1 answer

Can I use Maven Cargo plugin to deploy a WAR to 2 different servers (production and dev stages)?

I have a project with a Maven Cargo plugin configuration shown below. When I run mvn cargo:redeploy, it deploys the current version of the application to server at AAA.BBB.CCC.DDD. Now I want to add a second server, say EEE.FFF.GGG.HHH.…
Glory to Russia
  • 17,289
  • 56
  • 182
  • 325
1
vote
1 answer

org.codehaus.cargo.container.ContainerException: Cannot create deployable

In maven pom file, my project packaging type is "jar" like bellow. jar My cargo-maven2-plugin configuration in pom.xml file from the legacy code. I try to run it Eclipse Kelpler, but since the plugin configuration didn't…
user3123690
  • 1,053
  • 5
  • 17
  • 27
1
2 3