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
0
votes
2 answers

problem deploying project jar to running container that was started with maven cargo plugin

I have a series of Servlets and Servlet Filters in a maven project that are packaged into a jar and that jar is meant to be included in the /lib directory of a series of other "host" web applications. These Servlets are not meant to be run alone -…
D Parsin
  • 731
  • 2
  • 7
  • 17
0
votes
1 answer

Adding users to weblogic server

I'm strugling a bit with adding users to my weblogic 12.2.1 server. To start the server I use cargo 1.6.2 [INFO] [talledLocalContainer] Adding users and groups to WebLogic domain. [WARNING] [talledLocalContainer] ERROR: transport error 202: bind…
stuf99
  • 95
  • 6
0
votes
0 answers

Embedded tomcat using Cargo plugin for a Spring boot 2.0.0.M3 Application

We are trying to migrate existing application from Spring Boot v1.4.6.RELEASE tomcat7-maven-plugin Runtime as Embedded tomcat 7 To the new versions Spring boot v2.0.0.M3 cargo-maven2-plugin Embedded tomcat 8.5.5 Runtime This is consistently…
0
votes
1 answer

Close cmd after launching a server with batch

What Im trying to do is to close the cmd after running a cargo tomcat server through a batch script.. I've tried attempts such as; start mvn -P cargo.run && exit start "" mvn -P cargo.run exit start "" mvn -P cargo.run -Drepo.path=storage exit…
StrawHat
  • 351
  • 1
  • 6
  • 14
0
votes
1 answer

Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.0:run

I'm using javaee7 sdk from oracle. I have faced a problem. When I enter mvn cargo:run, it stoped at Resolved container artifact org.codehaus.cargo:cargo-core-container-glassfish:jar:1.4.0 for container glassfish4x for a long time. And at last, some…
0
votes
1 answer

Can I redeploy to remote Tomcat instance and start local testing instance

I'd like to start a new local Tomcat instance for testing purposes during the Maven's pre-integration-test phase (on different port) and run tests there. Then if the tests pass I'd like to do a cargo:redeploy to a remote Tomcat instance. I'm having…
burm
  • 93
  • 11
0
votes
1 answer

Maven Cargo: Weblogic deploy pingURL timesout

I have configured the cargo plugin to deploy to an already running local installation of weblogic. When I run mvn cargo:deploy I can see it copies the war to the autodeploy directory of the weblogic domain, I can then in my web browser go the same…
PDStat
  • 5,513
  • 10
  • 51
  • 86
0
votes
1 answer

Tomcat Localhost log not found when using maven cargo

I am trying to debug why I am getting a 404 when trying to access the url of the war I run using maven cargo with Tomcat container. I suspect the war is not starting up and need to check the localhost log file to debug the issue. I do not see any…
MONTEREY01
  • 49
  • 1
  • 1
  • 6
0
votes
1 answer

Executing cargo:run from a maven profile

I am trying to write a maven profile that will run the cargo:run goal and will Start a container and wait for the user to press CTRL + C to stop. However when I run mvn clean install -PstartApplication, the command completes successfully without…
callow
  • 517
  • 1
  • 4
  • 15
0
votes
2 answers

Cargo maven plugin - cannot deploy local war - "Artifact is not a dependency of the project"

I would like to use cargo maven plugin (cargo-maven2-plugin) for this scenario: I have selenium test framework (ProjectT), containing core, page objects and some steps used for UI testing of ProjectA. For this framework exists some integration…
mefi
  • 1,203
  • 1
  • 12
  • 16
0
votes
1 answer

How to bind two plugins in Maven

Using Maven, I need to automatically deploy a web application to a Tomcat server, then run a MainClass in order to do some post-deploy operations. These two things alone are already working, through cargo-maven2-plugin respectively…
Shepard
  • 801
  • 3
  • 9
  • 17
0
votes
1 answer

Deployed war in JBoss via cargo-maven2-plugin not accessible via JBoss AS Admin console

I'm deploying a war to a remote JBoss 5.1.0 using the following POM config org.codehaus.cargo cargo-maven2-plugin 1.0.2
Fayway
  • 15
  • 5
0
votes
1 answer

Create A War With Bundled Tomcat

My project structure looks like this: +Parent | +---dist | +---module1 (war) | +---module2 (jar) I want the dist module to package the war from module1 with an instance of Tomcat and zip it all up so that I can deploy it by unzipping on…
opticyclic
  • 7,412
  • 12
  • 81
  • 155
0
votes
3 answers

Make maven run one task before another when running a single plugin

I've got a project set up using the Maven Cargo plugin to launch Tomcat with my webapp deployed in it, along with some other webapps that are needed for support. This works great. Unfortunately, when I run "mvn cargo:run" it doesn't do a build…
Graham
  • 4,095
  • 4
  • 29
  • 37
0
votes
2 answers

Use Maven to Edit the standalone.xml When Starting Wildfly

I have set up a Maven project that starts up a standalone Wildfly container using Cargo, but in the process of adding some new features, I need to add some content to the standalone.xml. (Specifically, a security realm.) This seems like it should…
Alex N.
  • 654
  • 8
  • 21