multi module maven project with parent pom and svn layout

ⅰ亾dé卋堺 提交于 2019-11-30 06:54:00
Ali Shakiba

You can use following layout:

+parent-project
  pom.xml
+child-project-1
  pom.xml
+child-project-2
  pom.xml

In parent project pom add:

<modules>
    <module>../child-project-1</module>
    <module>../child-project-2</module>
</modules>

In children projects pom add:

<parent>
    <artifactId><!-- parent artifactId --></artifactId>
    <groupId><!-- parent groupdId --></groupId>
    <version><!-- parent version --></version>
    <relativePath>../parent-project</relativePath>
</parent>

Children Projects can optionally be dependent.

Following links may also help:

A variation to JohnS's approach would be to use svn:externals to hook appropriate trunk/tags/branches of your subprojects to the appropriate trunk/tag/branch of your parent project. In this way checking out one variant of your parent would pull out all the right version of the other projects.

This makes sense only if it's reasonable to checkout all your projects together.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!