Execute Maven plugin goal on child modules, but not on parent

后端 未结 6 911
眼角桃花
眼角桃花 2020-12-07 18:49

In a multi-module project, how can you specify that you want to execute a plugin goal in all the child-modules, but not on the parent project? There is

6条回答
  •  佛祖请我去吃肉
    2020-12-07 18:54

    This below config worked for me. Add the plugin in both the parent and child pom.

    Parent :

    
      
        
          maven-jar-plugin
          true
          
            
            integration-test
            
              jar
            
            
          
          
             true
          
        
      
    
    

    Child

    
      
        
          maven-jar-plugin
          false
          
            
            integration-test
            
              jar
            
            
          
          
             false
          
        
      
    
    

提交回复
热议问题