英文:
Maven build/plugins section inheritance behavior w.r.t to plugin version
问题
我正试图理解在父项目的POM文件的build/plugins部分中声明的插件的继承行为。
具体来说,如果在POM文件A上,在build plugins部分中声明了一个带有特定版本的插件,然后在POM文件B中,它将POM文件A作为父项目,并在自己的build plugins部分再次声明了相同的插件(附带一些配置/执行等),但没有指定插件版本。
在这种情况下,POM文件B会仅从POM文件A中声明的插件继承插件版本,还是会默认使用最新版本?
还要再次注意,我指的是build/plugins部分,而不是pluginManagement部分。
谢谢
英文:
I am trying to understand the inheritance behavior of plugins declared in the build/plugins section of a parent POM.
Specifically, if on POM A i declare a plugin in the build plugins section with a certain version & then on POM B which has POM A as parent i override the same plugin by declaring it again (with some configurations/executions, etc) in its own build plugins section BUT without specifying the plugin version.
In this case will POM B inherit the plugin version alone from the one declared in POM A or will it default to the latest version?
Also just to note again i am referring to the build/plugins NOT the pluginManagement section.
Thanks
答案1
得分: 1
POM A 和 B 中的插件配置将被合并。
您将继承版本号。
英文:
The configuration of the plugins in POMs A and B will be merged.
You will inherit the version.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论