What is pluginManagement in Maven's pom.xml?

前端 未结 5 1100
野性不改
野性不改 2020-11-22 06:41

This is a snippet of my pom file.

....
        
            
                

        
5条回答
  •  悲哀的现实
    2020-11-22 07:19

    So if i understood well, i would say that just like are both used to share only the configuration between a parent and it's sub-modules.

    For that we define the dependencie's and plugin's common configurations in the parent project and then we only have to declare the dependency/plugin in the sub-modules to use it, without having to define a configuration for it (i.e version or execution, goals, etc). Though this does not prevent us from overriding the configuration in the submodule.

    In contrast and are inherited along with their configurations and should not be redeclared in the sub-modules, otherwise a conflict would occur.

    is that right ?

提交回复
热议问题