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

Maven cargo and buildnumber plugin

Is there anybody out there who has combine the both maven plugins Cargo and Buildnumber work together ? I can create a property 'buildNumber' from the BuildNumber plugin well, but this property isn't propagated into the Cargo plugin. As mentions…
Dominik
  • 1,332
  • 1
  • 15
  • 28
4
votes
1 answer

Cannot redeploy to remote tomcat 7 with using cargo-maven-plugin

I am attempting to build and redeploy to a remote tomcat 7 server using the cargo-maven plugin. I have been able to successfully deploy to the remote server, but all other actions fail. Here is the pluging settings in my pom.xml
rottmanj
  • 531
  • 1
  • 9
  • 21
4
votes
4 answers

Maven and Cargo: start Jetty-Container with war-File

I just started a new Maven project that is intended to start a Jetty containing a war-File from a depended project. The cargo-plugin should be the right tool for this. Unfortunately it doesn't work for me. It starts Jetty successfully but it only…
tautologe
  • 1,781
  • 2
  • 15
  • 14
4
votes
1 answer

Debug Tomcat deployed code with cargo plugin

Can anyone please tell how to debug the code in eclipse with Cargo(Tomcat) plugin? We are using Java 8, Tomcat 8, eclipse Juno in Windows 7 OS. One other thing I want to mention is, we don't have control to modify Tomcat scripts as the tomcat is…
whoami
  • 1,517
  • 1
  • 21
  • 29
4
votes
3 answers

how to solve org.codehaus.cargo.container.ContainerException

whenever I up the application by through CMD it is getting up, but the same code if I run through eclipse, getting the below mentioned error... [DEBUG] [URLDeployableMonitor] Checking URL [http://localhost:8080/cargocpc/index.html] for status using…
user1919581
  • 481
  • 2
  • 14
  • 32
4
votes
1 answer

Maven with Cargo and Installed Glassfish

I have been having trouble getting this my maven project to work. I will show below my pom file and my error log. I am trying to run integration tests of my code on glassfish after it is deployed. Any help will be much appreciated. If there is a…
thekevshow
  • 774
  • 14
  • 36
4
votes
2 answers

There's no registered configuration for the parameters (container [id = [tomcat7x]

I have the following in my pom.xml org.codehaus.cargo cargo-maven2-plugin true tomcat7x
birdy
  • 9,286
  • 24
  • 107
  • 171
4
votes
1 answer

Problem using Maven with Cargo plug-in

When I'm using Maven with the cargo plug-ing to handle hot deployments to tomcat, maven fails on the clean task if the .war artifact doesn't currently exist. So if I run mvn clean, then mvn clean package - it errors out. What can I do to have…
BZ.
  • 1,928
  • 2
  • 17
  • 26
4
votes
1 answer

Use a developer HSQLDB in a Spring REST integration test

I would like to do an integration test of a Spring MVC Rest service. The purpose of this test is mainly to test the REST part, not the whole application. This means I would like to use HSQLDB instead of our PostgreSQL's main database. At the same…
Xavier M.
  • 136
  • 1
  • 7
3
votes
1 answer

Cargo-Maven2-Plugin not finding Tomcat /lib directory

I'm trying to setup Maven to start Tomcat (using Cargo) and deploy my project in preparation for integration tests. Here is my POM: < ... > org.codehaus.cargo cargo-maven2-plugin
Planky
  • 3,185
  • 3
  • 29
  • 39
3
votes
2 answers

Using Maven Cargo artifactInstaller for GlassFish 3.x

Is there a way to use Cargo's artifactInstaller element to install a GlassFish container during maven-cargo-plugin's run goal? More specifically, is there a ZIP artifact available in a Maven repository, which contains the required GlassFish files as…
Thilo-Alexander Ginkel
  • 6,898
  • 10
  • 45
  • 58
3
votes
2 answers

Extracting Tomcat Zip SOMETIMES fail with IOException: Negative seek offset

I am using maven cargo with its zip url installer feature to download a tomcat for my integration tests. This works fine on my computer, but when its run in husdon it fails sometimes (round about 10-20%). The failure is: Error while expanding…
Ralph
  • 118,862
  • 56
  • 287
  • 383
3
votes
1 answer

mailserver mock for integration tests inside cargo

I've got a web application i'm currently testing on different levels (junit tests, integration tests within cargo container running a tomcat, htmlunit etc.) and i'm facing a problem now. With some input information my web application is generating…
vvursT
  • 441
  • 6
  • 13
3
votes
2 answers

How to deploy a specific child project with cargo:start using maven

I have a developed application and I am just trying to make the build process easy. The POM file for parent looks like this: com.shc.obu.ca shcobuca-pom 1.1.0
Neeraj
  • 31
  • 1
  • 3
3
votes
1 answer

Cargo Maven Plugin unable to download and unpack Jetty zip due to "Negative seek offset"

I am facing the below error while running my integration tests: Failed to execute goal org.codehaus.cargo:cargo-maven2- plugin:1.1.3:start (start-container) on project : Execution start-container of goal…
Eesha
  • 92
  • 8
1
2
3
9 10