Thursday, December 11, 2008

Maven Resource Filtering Bug - Property Prefixes Ignored

There's a problem with Maven resource filtering whereby the property matching seems to ignore prefixes during the filtering. As a result, you might have ${mySpecialProject.url} get replaced as if you'd said ${pom.url}.

This is weird, and irritating; it's occasionally bit us. I tracked down the related bug today in the Resources Plugin issue tracker and I'm filing it away for future reference. If you're hitting this, you'll want to upgrade your resources plugin to 2.3, sounds like.

No comments: