An extension, intended for use with Maven > 3.3.9, that set a property for use in the version.

To use this, put a file named version-policy.txt in the project root, containing a line of the form:


VALUE can contain ${timestamp}. For example:


Then declare this extension in .mvn/extensions/xml as follows:

 <?xml version="1.0" encoding="UTF-8"?>

In the POM, use the property in the <version/> element: