pom作为项目对象模型。通过xml表示maven项目,使用pom.xml来实现。主要描述了项目:包括配置文件、开发者需要遵循的规则、缺陷管理系统、组织和licenses、项目的url、项目的依赖性以及其他所有的项目相关因素。

下面是我在项目中应用的一个pom.xml,仅供参考

更多细节内容将在后面的章节中一一讲解

4.0.0
com.shiyue.sysesp
sysesp-core-parent
1.0.CR11
../sysesp-core-parent/pom.xml
sysesp-core-web
war
http://maven.apache.org
junit
junit
test
com.shiyue.sysesp
sysesp-core-service
org.apache.struts
struts2-core
org.apache.struts
struts2-convention-plugin
org.apache.struts
struts2-json-plugin
org.apache.struts
struts2-spring-plugin
com.shiyuesoft
servlet-api
provided
com.shiyuesoft
jsp-api
provided
jstl
jstl
org.springframework
spring-web
jxl
jxl
com.sysesp.tag
tag
org.jasig.cas.client
cas-client-core
base
org.apache.maven.plugins
maven-war-plugin
true
src/main/webapp
WEB-INF/web.xml
WEB-INF/log4j.properties
org.apache.tomcat.maven
tomcat7-maven-plugin
http://192.168.2.203:8080/manager/text
/${build.finalName}
bruce
bruce