How to retrieve maven build number in pom.xml?

258 Views Asked by At

I would like to retrieve maven build number in pom.xml so that I could use it to tag docker image with dockerfile-maven-plugin. I have checked out https://www.mojohaus.org/buildnumber-maven-plugin/usage.html but that's not what I want. According to https://docs.oracle.com/middleware/1212/core/MAVEN/maven_version.htm#MAVEN8855 how do I get the build information to be used in my pom.xml? Is it possible? Thanks!

0

There are 0 best solutions below