In my spring project, the root pom.xml
contain some property
<properties>
<rev>3.0</rev>
<changelist>-SNAPSHOT</changelist>
</properties>
It's a multi-module project. These properties are being used in all child pom.xml
file throughout the whole project. The pom.xml
in child module use these properties like
<parent>
<groupId>platform</groupId>
<artifactId>platform-root</artifactId>
<version>${rev}${changelist}</version>
<relativePath>../../pom.xml</relativePath>
</parent>
I can modify the default value of that property in terminal by mvn test -Dchangelist=-release
Now, what I want to do is move the default value of those properties to an external file.
How can I do that?