本站首页    管理页面    写新日志    退出


«August 2025»
12
3456789
10111213141516
17181920212223
24252627282930
31


公告

戒除浮躁,读好书,交益友


我的分类(专题)

日志更新

最新评论

留言板

链接

Blog信息
blog名称:邢红瑞的blog
日志总数:523
评论数量:1142
留言数量:0
访问次数:9700026
建立时间:2004年12月20日




[软件项目管理]使用maven的cargo 调试web程序
原创空间,  文章收藏,  软件技术

邢红瑞 发表于 2007/4/2 16:10:30

使用resin D:/resin-3.0.24是resin的安装目录pom文件<?xml version="1.0" encoding="UTF-8"?>   <project xmlns="http://maven.apache.org/POM/4.0.0"       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">       <modelVersion>4.0.0</modelVersion>       <groupId>xxx</groupId>       <artifactId>xxx</artifactId>       <packaging>war</packaging>       <version>1.0</version>         <build>           <plugins>               <plugin>                   <groupId>org.codehaus.cargo</groupId>                   <artifactId>cargo-maven2-plugin</artifactId>                   <version>0.3</version>                   <configuration>                       <wait>true</wait>                       <container>                           <containerId>resin3x</containerId>                           <systemProperties>                               <file.encoding>GBK</file.encoding>                           </systemProperties>                           <home>D:/resin-3.0.24</home>                       </container>                   </configuration>               </plugin>                             <plugin>                   <inherited>true</inherited>                   <groupId>org.apache.maven.plugins</groupId>                   <artifactId>maven-compiler-plugin</artifactId>                   <configuration>                       <source>1.5</source>                       <target>1.5</target>                       <encoding>GBK</encoding>                       <optimise>true</optimise>                   </configuration>               </plugin>           </plugins>       </build>         <dependencies>        </project> 使用mvn clean package cargo:start 运行,或者在idea中运行中加入maven 可以使用配置文件<plugin>      <groupId>org.codehaus.cargo</groupId>      <artifactId>cargo-maven2-plugin</artifactId>      <configuration>        <container>          <containerId>jboss4x</containerId>          <zipUrlInstaller>            <url>http://internap.dl.sourceforge.net/              sourceforge/jboss/jboss-4.0.2.zip</url>            <installDir>${installDir}</installDir>          </zipUrlInstaller>        </container>      </configuration>    </plugin>pom的目录下建立一个profiles.xml文件<profilesXml>  <profiles>    <profile>      <id>vmassol</id>      <properties>        <installDir>c:/apps/cargo-installs</installDir>      </properties>    </profile>  </profiles>  <activeProfiles>    <activeProfile>vmassol</activeProfile>  </activeProfiles></profilesXml> 如果以utf-8编码方式,命令行参数加上 -Dfile.encoding="utf-8"。


阅读全文(4940) | 回复(0) | 编辑 | 精华
 



发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)



站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.031 second(s), page refreshed 144775812 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号