What does the parent tag in Maven pom represent?

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

E.g.:


    mycompany.trade.com
    mycompany.trade.
    1.1.         


        
3条回答
  •  误落风尘
    2020-12-23 11:32

    The common dependencies,Properties,constants etc can be definded in central parent project pom.xml

    The main important thing is the parent project cannot be distributed and it looks more similar like normal pom.xml except it packaging tag

        com.company.demo
        MavenInheritance
        0.0.1-SNAPSHOT
        pom
    

    The child now able to inherit this using

       
            com.company.demo
            MavenInheritance
            0.0.1-SNAPSHOT
        
    

提交回复
热议问题