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
15
votes
4 answers

Remote Deploy to WebSphere 8.5 using maven

I would like to control a remote deployment of a maven generated EAR over to an existing WAS instance not running on the build server. Ideally, I would like to do this within Maven so that I can remote deploy in say the integration-test phase then…
theINtoy
  • 3,388
  • 2
  • 37
  • 60
12
votes
3 answers

Configuring GlassFish 4 domain directory in Netbeans / Maven / Cargo plugin

I am trying to deploy the first example (hello1) from the Java 7/8 EE tutorial* using Netbeans and I am running into problems. The project compiles without problems but when deploying it gives an error: Failed to execute goal…
DeltaLima
  • 5,864
  • 1
  • 16
  • 32
10
votes
1 answer

Passing custom environment variables to maven cargo

I'm looking for a way to pass environment variables into a cargo container. Something like this: org.codehaus.cargo> cargo-maven2-plugin
hertzsprung
  • 9,445
  • 4
  • 42
  • 77
10
votes
2 answers

maven tomcat plugin or cargo plugin?

The spring source code examples use maven tomcat plugin and i am able to run these projects using the command mvn tomcat:run but what i dont see the application is not deployed in local tomcat server("C:\apache tomcat\webapps\").. And how it is…
javanoob
  • 6,070
  • 16
  • 65
  • 88
9
votes
3 answers

Is it possible to supply Tomcat6's context.xml file via the Maven Cargo plugin?

I'd like to keep Tomcat's context.xml file out of my WAR file's META-INF directory if possible. Can this be done with Maven's cargo plugin? I can't seem to find the correct configuration.
Dave
  • 21,524
  • 28
  • 141
  • 221
8
votes
4 answers

Unable to deploy to Tomcat7 from cargo

I'm trying to deploy to a remote Tomcat7 with Cargo from Maven over https. I've set up manager-script role and I've succeeded so far as to have been able to undeploy an app remotely. What I have looks like this:
Viktor Hedefalk
  • 3,572
  • 3
  • 33
  • 48
6
votes
1 answer

How do I override a Maven Plugin's log4j Configuration?

I'm using the Cargo Maven plugin to deploy a WAR to a remote server, and I'm having problems. I'll probably create a second question for that problem, but this one is about overriding a Maven plugin's log4j configuration. Cargo uses JBoss' client…
6
votes
4 answers

How to specify jetty-env.xml file for Maven Cargo plugin for Jetty?

I am migrating from Maven's jetty plugin to the Cargo plugin (cargo-maven2-plugin) because Cargo will happily run WARs from dependent Maven modules. Within out web-app we have taken great pains to externalize all configuration through JNDI. These…
Dave
  • 21,524
  • 28
  • 141
  • 221
6
votes
1 answer

Maven2: Cargo plugin hot deployment & Jonas support

I am trying to get the Cargo plugin works on my maven project in order to benefit from war hot-deployment targetting the Jonas server. The official documentation is not that clear on what is supported and what is not (for example you can find this:…
reef
  • 1,813
  • 2
  • 23
  • 36
5
votes
4 answers

Maven 3 and Cargo - 'No plugin found for prefix 'cargo''

I have just added the following code to my pom.xml (as specified on here) : org.codehaus.cargo cargo-maven2-plugin
Andrew
  • 2,663
  • 6
  • 28
  • 50
5
votes
1 answer

How to run embedded Tomcat 9 inside Maven 3 for integration testing purposes?

I am trying to run embedded Tomcat 9 inside Maven 3 for integration testing purposes. I was led to cargo-maven2-plugin by other SO answers. So, attempting to follow the instructions found…
Alex R
  • 11,364
  • 15
  • 100
  • 180
5
votes
2 answers

How do I package my web app and tomcat together using maven?

I would like to distribute my application packaged as WAR embedded in Apache Tomcat. That is I want to distribute Tomcat along with my application. How can this sort of distribution packaging can be done with Maven? I have seen the Maven Cargo…
Tahir Akhtar
  • 11,385
  • 7
  • 42
  • 69
5
votes
1 answer

maven cargo and selenium

i use maven cargo and selenium for automation. here is the code: org.codehaus.cargo cargo-maven2-plugin 1.0.5
Ikthiander
  • 3,917
  • 8
  • 37
  • 54
5
votes
3 answers

changing maven cargo plugin deployment path

I want to have my integration test hit cargo's tomcat at http://localhost:8080/messaging but cargo (cargo-maven2-plugin:1.0.5) prefers to deploy my messaging project as /messaging-0.0.7-SNAPSHOT, as seen in the tomcat admin console and in the…
dols
  • 733
  • 8
  • 16
5
votes
1 answer

Use SSL with maven cargo tomcat plugin

I see this post for configuring SSL with Maven Jetty Plugin. HowTo use https / ssl with Maven/Mortbay Jetty Plugin? Can someone pls tell me how to do it with cargo plugin for tomcat 7?
user1429007
  • 308
  • 1
  • 3
  • 10
1
2 3
9 10