Paul Rivera Paul Rivera - 1 year ago 111
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.

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download