multi artifact id in one pom

后端 未结 4 1529
不知归路
不知归路 2021-01-22 04:00

There is a maven project(jar), but now it needs to be spilt into two artifacts

I want to have two maven artifact like following

xxx         


        
4条回答
  •  遥遥无期
    2021-01-22 04:33

    If I understood the question correct, you need to have a super pom (xxx/pom.xml) and two different poms for both of your projects (xxx-client and xxx-impl). The structure of your super pom will be like this:

    
    
    
        4.0.0
    
        xxx
        xxx
        pom
    
        
            xxx-client
            xxx-impl
        
    
    

    Then when you deploy your main pom, it will deploy it's modules as well.

    Here are references if you want to read more about super pom and modules.

提交回复
热议问题