我对maven multiproject build有疑问。有maven项目:
root
|
|---libs
| |
| |---mailing
| | |
| | |---pom.xml
| |
| |---utils
| |---pom.xml
|
|---partner
|
|---admin
|---pom.xml
管理员:: pom.xml中:
<parent>
<groupId>my.com.parent.partner</groupId>
<artifactId>parent</artifactId>
<version>1.2.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>admin</artifactId>
<name>admin</name>
<packaging>war</packaging>
<!-- dependencies and so on and so forth -->
邮寄:: pom.xml中:
<groupId>my.com.mailing</groupId>
<artifactId>mailing</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<!-- dependencies and so on and so forth -->
我如何添加admin form mailign的依赖关系?
答案 0 :(得分:2)
aSimply将其添加为邮件pom.xml中的依赖项
<dependencies>
<dependency>
<groupId>my.com.parent.partner</groupId>
<artifactId>admin</artifactId>
</dependency>
</dependencies>