m2eclipse resource filtering

Posted by drewzilla on Stack Overflow See other posts from Stack Overflow or by drewzilla
Published on 2010-05-05T13:14:26Z Indexed on 2010/05/05 13:18 UTC
Read the original article Hit count: 421

Filed under:
|
|

I've having problems with resource filtering using m2eclipse Maven support in Eclipse. It seems that filtering only takes place on resources that have changed. This is fundamentally flawed because, if I have a file that references properties (e.g. ${my.property}, if the value of the property changes, the filtering will only be performed if the referencing file is also modified - if I only change the property value (in my pom.xml), the filtering is not applied to the files that that reference it.

So, if I make a change to a property in my pom file, the filtering is not applied. However, if I then go to the file that references that property (e.g. a Spring config file) then edit and save it, the filtering is applied.

I did read somewhere that:

"m2eclipse skips filtering if there were no resource changes during incremental build"

I'm using m2eclipse 0.10.x

Has anyone else come across this?

Thanks,

Andrew

© Stack Overflow or respective owner

Related posts about m2eclipse

Related posts about maven