When I generate an Ant project with mvn ant:ant, the generated Ant project doesn’t filter resources to replace property tokens (e.g. ${property}). Is there an easy way to make it do so?
When I generate an Ant project with mvn ant:ant , the generated Ant project
Share
The ant plugin will generate the following files, based on your POM:
The resource filtering occurs within the “compile” target so you can override it’s behavior by copying the target into the build.xml and changing it’s behavior.
Running the Maven ANT plugin again will not over-write this customization (Only the maven-* files are regenerated).
Example
build.xml
Filterset is added to the copy task within the compile target: