cargo

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

Where can I find a complete Maven Cargo plugin example for EJB tests?

时间秒杀一切 提交于 2019-12-05 04:08:44
问题 For tests of some small JBoss enterprise apps I would like to use JUnit, and the Maven Cargo plugin. (I know that there is also JSFUnit but first I would like to take a closer look at Cargo.) Is there a simple example available online which I could use as a reference for running a JUnit test which invokes a EJB operation using JBoss (4.2 or 5.1) using the Maven Cargo plugin? I have found some good introductions to the configuration, but I get error messages in the EJB lookup so it would be

How to connect to remote server and start/stop the Tomcat that's running on that particular server using Ant?

夙愿已清 提交于 2019-12-05 02:51:01
问题 The purpose is to: 1: connect to a remote server maybe via host: ip , port: 8181 2: stop Tomcat that's running on that server 3: deploy a .war file 4: restart tomcat 回答1: I believe Tomcat Documentation under Monitoring and Managing Tomcat offers some information on how to stop a given application, but not the server entirely: <jmx:invoke name="Catalina:type=Manager,path=/servlets-examples,host=localhost" operation="stop"/> If you have ssh access to the server, then you might like to consider

Local debugging application launched on tomcat with cargo in IntelliJ

被刻印的时光 ゝ 提交于 2019-12-04 21:15:28
问题 I am trying to enable debugging in my cargo configuration. I'm using cargo-maven2-plugin version 1.4.19 with the following configuration. <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>1.4.19</version> <configuration> <container> <containerId>tomcat8x</containerId> </container> <configuration> <type>standalone</type> <properties> <cargo.servlet.port>8080</cargo.servlet.port> <cargo.jvmargs> -Xmx2048m -Xms512m -Xdebug -Xrunjdwp

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

Cargo embedded tomcat: custom context.xml

回眸只為那壹抹淺笑 提交于 2019-12-04 19:16:35
I am using cargo to automate war deployment on Tomcat. However, i get a trouble: i can`t replace default tomcat files with my custom as my files are copied first and then get overwritten by default. I spent hours for resolving this problem but nothing works. Here is my pom.xml <artifactId>maven-resources-plugin</artifactId> <executions> <execution> <id>replace-tomcat-users-xml</id> <phase>process-test-resources</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${basedir}/target/apache-tomcat-${version.tomcat}/conf/</outputDirectory> <resources> <resource>

Windows下Rust开发环境配置

心已入冬 提交于 2019-12-04 06:12:42
1. 安装Rust 到 https://www.rust-lang.org/zh-CN/learn/get-started 找到rust的下载地址. 然后安装rustup-init.exe, 安装之后, rustc, cargo都安装好了. 2. 设置网络: 由于crate.io被屏蔽, 需要设置国内源. 或者通过代理访问. 设置方式为: 到.cargo文件夹下(通常在用户文件夹下), 找到config文件,然后输入 [source.crates-io] registry = "https://github.com/rust-lang/crates.io-index" replace-with = 'ustc' [source.ustc] registry = "git://mirrors.ustc.edu.cn/crates.io-index" 或者 [http] proxy = "[socks5://]server:<port>" 来源: https://my.oschina.net/somereasons/blog/3128344

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

我怕爱的太早我们不能终老 提交于 2019-12-04 05:23:04
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 tried setting -Dlog4j.debug and got this information: log4j: Trying to find [log4j.xml] using

Cargo plugin throws CargoException when deploying on Glassfish - Deployment has failed: null

半世苍凉 提交于 2019-12-03 22:44:12
I'm trying to deploy web application using Cargo Maven plugin on remote Glassfish server (Edition 3.1.1 (build 12)). Glassfish server as well as Java code located on different Linux servers (Ubuntu). I've configured all necessary properties in pom file and tested deployment on Windows machine. It works. But it fails on Linux Ubuntu with interesting exception: 27-Jun-2012 14:36:05 [ERROR] Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.2.1:deploy (default-cli) on project my-web-project-app: Execution default-cli of goal org.codehaus.cargo:cargo-maven2-plugin:1.2.1:deploy failed:

Redeploy remote glassfish with cargo fails

谁说胖子不能爱 提交于 2019-12-03 21:47:32
问题 I'm currently trying to use cargo to deploy an application on a remote glassfish 3.1.2 through atlassian's bamboo. This is a development environment so the same application with a different version number will be deployed on the same context root every time. But every-time I execute the job with the maven goal : org.codehaus.cargo:cargo-maven2-plugin:redeploy I keep getting the error : 11-Jun-2013 15:13:48 Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of