What does the parent tag in Maven pom represent?

后端 未结 3 1911
梦如初夏
梦如初夏 2020-12-23 11:09

E.g.:


    mycompany.trade.com
    mycompany.trade.
    1.1.         


        
3条回答
  •  庸人自扰
    2020-12-23 11:47

    Yes, maven reads the parent POM from your local repository (or proxies like nexus) and creates an 'effective POM' by merging the information from parent and module POM.

    See also Introduction to the POM

    One reason to use a parent is that you have a central place to store information about versions of artifacts, compiler-settings etc. that should be used in all modules.

提交回复
热议问题