Override Maven's default resource filter replacement pattern.

Posted by Matt Campbell on Stack Overflow See other posts from Stack Overflow or by Matt Campbell
Published on 2010-02-22T23:12:40Z Indexed on 2010/04/19 15:23 UTC
Read the original article Hit count: 247

Filed under:
|

By default maven will filter resources like this:

<properties>
  <replace.me>value</replace.me>
</properties>

<some-tag>
  <key>${replace.me}</key>
</some-tag>

will get you:

<some-tag>
  <key>value</key>
</some-tag>

Is there a way to override the way maven selects the strings to replace? Specifically, I want to be able to use this:

<some-tag>
  <key>@replace.me@</key>
</some-tag>

to get the same result as above.

© Stack Overflow or respective owner

Related posts about maven-2

Related posts about filtering