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

How to make jbehave-maven-plugin report failures in maven verify Phase?

I am trying to integrate jbehave-maven-plugin with cargo-maven2-plugin. jbehave-maven-plugin is configured to run during integration-test phase compile true
0
votes
0 answers

Migrate tomcat7-maven-plugin to cargo-maven3-plugin

We are updating a project to use the new cargo-maven3-plugin instead of tomcat7-maven-plugin, and we need some help understanding how to configure certain features. The existing plugin configuration is:
radumanolescu
  • 4,059
  • 2
  • 31
  • 44
0
votes
1 answer

How to create a jar of jars including only required 3rd party libraries outside of war file

Environment: Java 17 Tomcat 9.x Maven 3.8.4 (with Codehaus Cargo plugin) Gitlab CI/CD I'm looking for input from anyone that has separated all of their 3rd party libraries into catalina lib (or a custom directory specified via extending…
0
votes
0 answers

Integration test: copy adapter files of keycloak

I want to deploy my application in a tomcat server during integration tests. This works fine. I am struggling with copying the keycloak-adapter-core to the folder: \target\cargo\installs\tomcat-8.5.9\apache-tomcat-8.5.9\lib If I copy the files…
DavidBoe
  • 21
  • 3
0
votes
0 answers

cargo-maven3-plugin: unable to add datasource

I am trying to configure datasources on a Tomcat using Cargo to allow people doing local tests of the software. When I start the application using cargo, I have the following error: SEVERE: Exception sending context initialized event to listener…
Sixro
  • 402
  • 4
  • 16
0
votes
1 answer

Deployment on payara with cargo plugin

i want to deploy my War with cargo-maven2-plugin but its not work like expected. when i deploy the first time, its works, but when i deploy a second time i got an error after undeploy is…
user3773380
  • 145
  • 1
  • 2
  • 12
0
votes
0 answers

How do I provide Spring application.properties files to cargo so that my application context starts properly?

I am adding cargo and failsafe to my Spring-Boot application. Failsafe: Great. Finds my 1 IT and runs it fine as long as I have the localhost running. Up until now, I have gotten by with running it locally and then running the IT. maven: Also…
newbo
  • 163
  • 1
  • 9
0
votes
1 answer

How to specify core.cargo.version to use in cargo-maven2-plugin

I am trying to upgrade my existing maven application to use tomcat 7.10 and above. On 7.8 I use the cargo-maven2-plugin to startup the tomcat container and deploy the webapp, this works fine. On 7.10 and above this fails with the error: [WARNING]…
Matt Wheeler
  • 455
  • 2
  • 10
0
votes
1 answer

Automated deployment of EAR project without obtain dependencies from a repository

Is it possible deploy an artifact (.ear) into a application server (AS) without obtain its dependencies from a repository? Let's me explain: the maven project I'm trying to configure for deploy into a AS has 3 modules: Web (.war - front end) EJB…
rogerio_gentil
  • 359
  • 1
  • 4
  • 17
0
votes
0 answers

Integration Test with Arquillian cause Duplicate layer 'base' on Wildfly10

I have a problem running integration-test with maven failsafe-plugin using wildfly 10x embedded container. The embedded container is composed and running by Cargo maven plugin. These plugin downloads wildfly server, installs it, and start and stop…
0
votes
1 answer

Not able to get the application deployed on tomcat8 while using cargo plugin

I am using cargo plugin to configure Tomcat. But I am not able to get my application up. Getting 400 while hitting the application URL. This is how the cargo configuration in pom.xml looks like: