标签:
为了方便依赖关系的管理,可在父模块中配置好所需的依赖关系,在子模块中引入group_id 和 artifactId 即可.
父模块pom文件配置:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
</dependencies>
</dependencyManagement>
子模块pom文件配置:
<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
</dependencies>
标签:
原文地址:http://www.cnblogs.com/2013-01-28/p/5031227.html