I am using Maven 3.3.3. I just upgraded from 3.1.1 and noticed that I can't pass in a version anymore.
pom.xml
<modelVersion>4.0.0</modelVersion>
<groupId>com.hello.world</groupId>
<artifactId>helloworld</artifactId>
<version>${VERSION_NUMBER}</version>
<packaging>pom</packaging>
<properties>
<VERSION_NUMBER>LOCAL-ONLY-SNAPSHOT</VERSION_NUMBER>
</properties>
mvn package -DVERSION_NUMBER=1.2.3
After upgrading to Maven 3.3.3, I now get the error message: [ERROR] Version must be a constant
My goal is to be able to pass in a version number and never have actual numbers in the pom.xml. I don't want to use the versions-plugin, as that actually changes the pom.xml to use a specific version number. No version numbers in source control.