simple-parent项目中有一个pom.xml这个xml引用五个子模块
simple-model
simple-weather
simple-persist
simple-webapp
simple-command
simple-model,simple-weather,simple-persist,simple-webapp,simple-command
顶级的pom.xml simple-parent.pom
[code="xml"]
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4.0.0
com.sonartype.mavenbook.ch07
simple-parent
pom
1.0
Parent Project
simple-command
simple-model
simple-weather
simple-persist
simple-webapp
com.maven.plugins
maven-compiler-plugin
6.1.7
1.5
1.5
junit
junit
3.8.1
test
[/code]
simple-model 的pom.xml
[code="xml"]
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4.0.0
com.sonartype.mavenbook.ch07
simple-parent
1.0
simple-model
jar
simple object model
<dependencies>
org.hibernate
hibernate-annotations
3.3.0.ga
test
org.hibernate
hibernate-commons-annotations
3.3.0.ga
test
[/code]
simple-weather 的pom.xml
[code="xml"]
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4.0.0
com.sonartype.mavenbook.ch07
simple-parent
1.0
simple-weather
jar
simple-weather
log4j
log4j
1.2.14
dom4j
dom4j
1.6.1
[/code]
simple-persist pom
[code="xml"]
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4.0.0
com.sonartype.mavenbook.ch07
simple-parent
1.0
simple-weather
jar
simple-persist
com.sonartype.mavenbook.ch07
simple-model
1.0
org.hibernate
hibernate
3.2.5.ga
javax.transaction
jta
org.hibernate
hibernate-annotations
3.3.0.ga
test
org.hibernate
hibernate-commons-annotations
3.3.0.ga
test
org.apache.geronimo.spece
geronimo-jta_1.1_spec
1.1
org.springframework
spring
2.0.7
[/code]
simple-webapp pom
[code="xml"]
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4.0.0
com.sonartype.mavenbook.ch07
simple-parent
1.0
simple-webapp
war
simple-webapp
org.apache.geronimo.spece
geronimo-jta_1.1_spec
1.1
com.sonartype.mavenbook.ch07
simple-weather
1.0
com.sonartype.mavenbook.ch07
simple-persist
1.0
org.hibernate
hibernate
3.2.5.ga
javax.transaction
jta
simple-webapp
org.mortbay.jetty
maven-jetty-plugin
6.1.7
5
8080
60000
hsqldb
hsqldb
1.8.0.7
org.codehaus.mojo
hibernate3-maven-plugin
2.0
hbm2ddl
annotationconfiguration
hsqldb
hsqldb
1.8.0.7
[/code]
jetty 插件 配置 需要配置在 打成war包的项目中
[code="xml"]
org.mortbay.jetty
maven-jetty-plugin
6.1.7
5
8080
60000
[/code]