`

Maven 多模块

阅读更多
参考资料
1 Maven 实战 阅读 摘要
http://blog.csdn.net/eclipser1987/article/details/6363857
2 Maven2 Pom.xml元素详解
http://www.fengfly.com/plus/view-60008-1.html
3 Maven pom文件常用配置小结
http://marshal.easymorse.com/archives/511
4 Maven实战:POM重构之增还是删
http://www.infoq.com/cn/news/2010/12/xxb-maven-2-pom
5 Maven多模块项目 eclipse热部署 Maven项目实现 tomcat热部署
http://blog.csdn.net/laoshuisheng/article/details/6420003
6 使用maven创建多模块web项目
http://blog.csdn.net/welken/article/details/5026855
7 Maven的多模块(Multi-Module)工程的pom编写(转)
http://www.blogjava.net/sealyu/archive/2009/12/30/307760.html
8 使用maven创建多模块web项目
http://devbbs.doit.com.cn/thread-11232-1-1.html
http://marshal.easymorse.com/archives/873
一 mvn help:system
这个命令会列出你机器上所有环境配置变量,实用性不错呢!
二 POM.xml如下
<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>org.spring</groupId>
<artifactId>springmvc</artifactId>
<version>1.0</version>
</project>

groupId : 组织标识,公司域名
artifactId : 项目名称
version : 版本号

三 创建多模块命令
mvn archetype:create -DgroupId=net.liuzd.cf.model -DartifactId=cf-model

mvn archetype:create -DgroupId=net.liuzd.cf.common -DartifactId=cf-common

mvn archetype:create -DgroupId=net.liuzd.cf.dao -DartifactId=cf-dao

mvn archetype:create -DgroupId=net.liuzd.cf.manager -DartifactId=cf-manager

mvn archetype:create -DgroupId=net.liuzd.cf.service -DartifactId=cf-service

mvn archetype:create -DgroupId=net.liuzd.cf.web -DartifactId=cf-web
-DpackageName=net.liuzd.cf.web -DarchetypeArtifactId=maven-archetype-webapp

附件说明:cf.rar是我创建的多模块mavn工程
  • cf.rar (156.1 KB)
  • 下载次数: 59
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics