I have two top-level Maven projects, backend
and frontend
, that advance versions at their own individual pace. Since each has multiple modules, I d
How to update property in existing POM:
Try to use filtering in maven-resource-plugin:
Advantages:
Disadvantages:
How to provide propery on build time:
You could specify any property by build parameter.
For example, I have property in my pom.xml like:
TODAY
To change it during build I simply use parameter:
mvn compile -Dbuild.date=10.10.2010
I'm pretty sure it will work for version as well. Also, properties from top level projects are inherited by childs.