« | August 2025 | » | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | | | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 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"。 |
|
|