I solved by following http://blog.xebia.com/2008/11/02/watch-out-when-filtering-resources-with-maven/ this approach. Declared two <resource> elements, one to copy unfiltered resources and other to copy filtered resources.
Still I did not get to resolve why nonFilteredFileExtensions did not work. Wayne Fay wrote: > >> I have some jar files under src/test/resources folder. I have enabled >> filter for the test resources. Now during filtering jar files get >> corrupted. I have tried the following configuration but does not seem > > Many people use /src/main/resources/filtered and > /src/main/resources/unfiltered for this very reason (or /src/test). > > You will, of course, have to configure the resources directories > manually in the pom as a result of this, as the default configuration > (convention) will no longer apply. > > Wayne > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://www.nabble.com/exclude-jars-during-filtering-tp21492939p21525970.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
