编程语言
首页 > 编程语言> > java – Maven`pom.xml`之间的区别和标记

java – Maven`pom.xml`之间的区别和标记

作者:互联网

参见英文答案 > What is pluginManagement in Maven’s pom.xml?                                    4个
在配置我的pom.xml时,我必须配置一个插件.我发现的是<插件>标签可以插入< plugins>内;或者< pluginManagement>元素.我很困惑!

< plugins>之间的区别是什么?和< pluginManagement>?

解决方法:

Maven documentation开始:

pluginManagement: is an element that is seen along side plugins. Plugin Management contains plugin elements in much the same way, except that rather than configuring plugin information for this particular project build, it 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. The children have every right to override pluginManagement definitions.

你可以看看a better answer

标签:java,maven,pom-xml
来源: https://codeday.me/bug/20190928/1827575.html