How to Deploy only the sub-modules using maven deploy?

前端 未结 6 831
既然无缘
既然无缘 2021-01-31 07:48

How do i deploy only the sub-modules of the project? i have a project as;

ProjectA
 -  Submodule B
 - Submodlue C
 - Submodule D 

The submodule

6条回答
  •  感情败类
    2021-01-31 08:54

    You can use the technique described in my blog.

    In this case, you'd disable default-deploy (or what the name is) in the root pom.xml:

    
        org.apache.maven.plugins
        maven-deploy-plugin
        
            
                default-deploy
                none
            
        
    
    

    And then enable it for submodules:

    
        org.apache.maven.plugins
        maven-deploy-plugin
        
            
                default-deploy
                deploy
            
        
    
    

提交回复
热议问题