Maven2 inheritance

后端 未结 5 2070
迷失自我
迷失自我 2021-02-12 23:26

If I have a parent pom and want to inherit this to several projects. I usually do this by adding in top of the project ... . What I do

5条回答
  •  被撕碎了的回忆
    2021-02-13 00:13

    You should keep your versions as snapshots until it's time to release. This way you won't have to change it every time you change the pom. However once you've released a parent pom, you will want to make the change to all the children (assuming the parent is outside the "reactor" build...otherwise it would have been all bumped together by the release plugin). There is a relatively new plugin called the versions-maven-plugin that can assist with changing the versions.

提交回复
热议问题