How to request Pom version using maven

Is there a goal that can be accomplished that will simply repeat the pom version? I can think of a way to make it work using maven-ant-plugin, but this requires that I have the ant-plugin configuration in pom, and I need a method that will work with any pom.

+4
source share
1 answer
mvn help:evaluate -Dexpression=project.version 
+11
source

Source: https://habr.com/ru/post/1309032/


All Articles