diff --git a/content/posts/2019-10-20-maven-set-version.md b/content/posts/2019-10-20-maven-set-version.md new file mode 100644 index 0000000000000000000000000000000000000000..3cc143f62fb52fab55d5d949305016db45ac0865 --- /dev/null +++ b/content/posts/2019-10-20-maven-set-version.md @@ -0,0 +1,19 @@ +--- +title: "Setting Your Maven Project Versions" +description: "How to set the versions of all Maven `pom.xml`s within a Maven project." +tags: +- blogumentation +- maven +- java +license_code: Apache-2.0 +license_prose: CC-BY-NC-SA-4.0 +date: 2019-10-20T14:39:07+0100 +slug: "maven-set-version" +--- +If you're looking to manually set the versions of a Maven project's versions, i.e. as part of a release, it can be a pain if you've got a large project with lots of version numbers. + +Fortunately there is the [maven-versions-plugin](https://www.mojohaus.org/versions-maven-plugin/) which we can use to i.e. to bump the whole project to `0.2-SNAPSHOT`: + +```sh +mvn versions:set -DnewVersion=0.2.0-SNAPSHOT +``` diff --git a/permalinks.yml b/permalinks.yml index 9d7bfc712450c8763437c1a9ea2369555c49dc86..4b81e7587b3e4c0d4f81b248eebffd6fd2621618 100644 --- a/permalinks.yml +++ b/permalinks.yml @@ -1,5 +1,6 @@ --- posts: +- https://www.jvt.me/posts/2019/10/20/maven-set-version/ - https://www.jvt.me/posts/2019/10/19/microformats-eventbrite/ - https://www.jvt.me/posts/2019/10/16/java-truststore-list/ - https://www.jvt.me/posts/2019/10/12/devopsdays-london-2019/