multi module maven project with parent pom and svn layout

后端 未结 2 2005
梦谈多话
梦谈多话 2020-12-30 08:03

I currently have about 16 projects that I build with maven that get deployed to the same application server that make up something like a \"portal\". I have built a parent p

2条回答
  •  北海茫月
    2020-12-30 08:58

    You can use following layout:

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

    In parent project pom add:

    
        ../child-project-1
        ../child-project-2
    
    

    In children projects pom add:

    
        
        
        
        ../parent-project
    
    

    Children Projects can optionally be dependent.

    Following links may also help:

    • http://maven.apache.org/guides/introduction/introduction-to-the-pom.html
    • Maven parent pom vs modules pom

提交回复
热议问题