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

后端 未结 6 916
眼角桃花
眼角桃花 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:52

    I had a similar requirement to run some plugins in the child but not the parent POM. i achieved this by stating true in the parent POM.

    The parent pom entry is below:

    
        eviware
        maven-soapui-plugin
        4.0.0
        false
        
            
                junit
                junit
                4.8.2
            
         
        
            true
        
     
    

    The child project pom entry is below

    
        
            eviware
            maven-soapui-plugin
            4.0.0
            
                site-service-web/src/test/soapui/soapui-settings.xml
                site-service-web/src/test/soapui/PodifiSite-soapui-project.xml
                site-service-web/target/surefire-reports
                true
                true
                true
            
        
    
    

提交回复
热议问题