Maven - Parent Pom - Child Inheritance

前端 未结 3 735
-上瘾入骨i
-上瘾入骨i 2020-12-25 13:51

I am attempting to make a maven parent pom setup where I don\'t have to declare any plugin information in my child pom, everything is taken from the parent pom.

I es

3条回答
  •  一生所求
    2020-12-25 14:45

    section is intended to configure project builds that inherit from this one. However, this only configures plugins that are actually referenced within the plugins element in the children (so you have to explicitly specify them, as you indicated). See more here.

    If you want to avoid this, you can put this information into section like this:

    
      
        
          org.apache.maven.plugins
          maven-scm-plugin
          1.0
          
            <...>
          
          
            <...>
          
        
      
    
    

提交回复
热议问题