Tuesday, August 3, 2010

Maven: Filtering Delimiter

The "@" is one of the default delimiter of Maven 2. This may cause problem if there is any email address in the resource files to be filtered. To filter resources that contain "@", simply add maven-resources-plugin into the pom file and configure it as follow:



Since Maven 2 uses "${", "}" and "@" as default delimiters, the above configuration removes "@" from delimiters and hence will filter resources that contains "@" without a problem.

No comments:

Post a Comment