Paul Rivera Paul Rivera - 3 months ago 7x
Java Question

Are conditions supported in Maven resource filtering?

I was wondering if there's a way to do

-conditions in Maven resource filtering. E.g. something that allows me to do:


#if($ == true)
some text to include here

Something similar to velocity.


Simple answer no. But if you really need conditions you might take a look into the velocity-maven-plugin which solve your problem but it's not intended to filter resources but your use case it might work.