Reputation: 13
I want to save maven information in my database like the version of my project in each run of liquibase.
I try to put my maven variable in an external properties file but it's not taken and my value is "{project.version}" in my table.
There is a way to get this information ?
Thanks for your help.
Upvotes: 1
Views: 1151
Reputation: 32649
You need to check out what Maven resource filtering is.
When you define <resource/>
-s in your pom.xml
, you can turn on filtering, by doing <filtering>true</filtering>
. This will tell Maven to replace all ${foo.bar}
-like variables in your resources.
Upvotes: 1