父工程的配置文件
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.yuxiu.edu</groupId>
<artifactId>common-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<modules>
<module>edu-model</module>
<module>edu-dao</module>
<module>edu-service</module>
<module>edu-manager</module>
<module>edu-api</module>
</modules>
<!-- 父工程 - pom-->
<packaging>pom</packaging>
<!-- 公共的版本号管理-->
<properties>
<junit.version>4.11</junit.version>
<spring.version>4.3.14.RELEASE</spring.version>
<mybatis.version>3.4.1</mybatis.version>
<mybatis-spring.version>1.3.1</mybatis-spring.version>
<log4j.version>1.2.17</log4j.version>
<slf4j.version>1.7.12</slf4j.version>
<jstl.version>1.2</jstl.version>
<taglibs.version>1.1.2</taglibs.version>
<c3p0.version>0.9.5.2</c3p0.version>
<mysql.version>5.1.35</mysql.version>
</properties>
<!-- 公共依赖-->
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${
junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
子工程manager层ssm整合配置文件
<?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/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>common-parent</artifactId>
<groupId>com.yuxiu.edu</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>edu-manager</artifactId>
<packaging>war</packaging>
<name>edu-manager Maven Webapp</name