From bd2d24af3ad11424cc9fc8b8b12291568feaaa12 Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Tue, 16 Feb 2021 17:57:01 +0100 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ab2798a6..4b06aeee 100644 --- a/README.md +++ b/README.md @@ -244,7 +244,7 @@ Create `${basedir}/.mvn/maven-git-versioning-extension.xml`. # Miscellaneous Hints ### Commandline To Print Project Version -`mvn --non-recursive exec:exec -Dexec.executable='echo' -Dexec.args='${project.version}' -q` +`mvn help:evaluate -Dexpression=project.version -q -DforceStdout` ### Reproducible builds ### The reproducible builds feature (https://maven.apache.org/guides/mini/guide-reproducible-builds.html) newly introduced in maven can be easily supported with this extension by using the latest commit timestamp as build timestamps.