maven-cargo

Extracting Tomcat Zip SOMETIMES fail with IOException: Negative seek offset

徘徊边缘 提交于 2019-12-07 14:32:14
问题 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 /home/hudson/workspace/My Test Media-Archive/cfma/target/cargo/install/apache-tomcat-6.0.32.zip java.io.IOException: Negative seek offset at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:148) at org.apache.tools.ant.taskdefs.Expand.execute

Maven2: Cargo plugin hot deployment & Jonas support

本秂侑毒 提交于 2019-12-07 06:20:15
问题 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: http://cargo.codehaus.org/Hot+Deployment but also this http://cargo.codehaus.org/JOnAS+4.x). Anyway I have the following coniguration in for my war's POM: <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId>

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

五迷三道 提交于 2019-12-06 05:09:16
问题 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 <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.1.1</version> <configuration> <!-- Container configuration --> <container> <containerId>tomcat7x</containerId> <type>remote</type> </container> <configuration> <type

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

对着背影说爱祢 提交于 2019-12-06 01:37:29
问题 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 libraries to ship stuff to JBoss servers (which I'm trying to do.) The JBoss library uses log4j. Cargo doesn't set up any sort of mapping layer that I know of. So, essentially, log messages are occurring in the dependent library of a Maven plugin. I

How to deploy remotely EAR to JBoss 5.1.0.GA using Cargo maven plugin?

你离开我真会死。 提交于 2019-12-05 23:01:10
Has someone successfully deployed EAR remotely to JBoss 5.1.0.GA? My pom.xml configuration is as follows: <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0.1-SNAPSHOT</version> <configuration> <container> <containerId>jboss51x</containerId> <type>remote</type> <timeout>600000</timeout> </container> <configuration> <type>runtime</type> <properties> <cargo.remote.username>username</cargo.remote.username> <cargo.remote.password>password</cargo.remote.password> <cargo.hostname>myserver</cargo.hostname> <cargo.servlet.port>8888</cargo.servlet

Extracting Tomcat Zip SOMETIMES fail with IOException: Negative seek offset

大兔子大兔子 提交于 2019-12-05 22:12:17
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 /home/hudson/workspace/My Test Media-Archive/cfma/target/cargo/install/apache-tomcat-6.0.32.zip java.io.IOException: Negative seek offset at org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:148) at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:107) at org.codehaus.cargo.container.installer.ZipURLInstaller.unpack(ZipURLInstaller.java

Maven2: Cargo plugin hot deployment & Jonas support

荒凉一梦 提交于 2019-12-05 09:56:49
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: http://cargo.codehaus.org/Hot+Deployment but also this http://cargo.codehaus.org/JOnAS+4.x ). Anyway I have the following coniguration in for my war's POM: <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.0</version> <configuration> <container> <containerId>jonas4x</containerId> <home>C:\JOnAS-4

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

随声附和 提交于 2019-12-04 23:41:28
问题 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 Plugin, but it appears to be geared towards deploying applications in containers locally. Perhaps an additional step over Cargo plugin is what I need. cargo:package appears to be interesting but lacks documentation. 回答1: Elaborating Tomasz's comment,

Where is Cargo generating context XML for Jetty 6.x?

只谈情不闲聊 提交于 2019-12-04 19:17:44
I am trying to implement the solution mentioned in How to specify jetty-env.xml file for Maven Cargo plugin for Jetty? However I am facing something even more fundamental: My Cargo is simply not generating any context xml. <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.2.1</version> <configuration> <!-- Container configuration --> <container> <containerId>jetty6x</containerId> <type>embedded</type> </container> <!-- Configuration to use with the container or the deployer --> <configuration> <properties> <cargo.servlet.port>${itest.webapp

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

允我心安 提交于 2019-12-04 09:21:32
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 <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.1.1</version> <configuration> <!-- Container configuration --> <container> <containerId>tomcat7x</containerId> <type>remote</type> </container> <configuration> <type>runtime</type> <properties> <cargo.remote.username>tomcat</cargo.remote.username> <cargo.remote