Reputation: 5742
I need to change a project version and I can do it by creating a Maven project and add Maven goal of versions:set. I can also do manually.
Question: Is there any downside of changing pom.xml
versions manually (using sed/awk)?
Upvotes: 2
Views: 673
Reputation: 27862
Changing the version using a Maven plugin is definitely better than a manual approach (e.g. sed
/awk
) for several reasons:
versions:set
would also automatically take care of propagating the change to sub-modules, in case of multi-module Maven project, since the goal:
Sets the current project's version and based on that change propagates that change onto any child modules as necessary.
Upvotes: 2