Simple filtering question
Hi all - I'm struggling a bit with what seems like a really simple/silly thing. I have to use an explicit configuration of the maven-resources-plugin to copy and filter some resources. What I'm seeing, regardless of packaging type, is if you explicitly configure this plugin, it won't expand ANY properties within the file. For grins, I took the same file I wanted to filter, put it in src/main/resources, added a stanza and boom - everything is properly filtered. Here is the explicit plugin configuration I'm using - anything stand out? org.apache.maven.plugins maven-resources-plugin 2.5 default-resources validate resources . true true foo.txt I tried several phases with no luck, so it's not that either. In the ultimate configuration, this will go into an aggregate pom with packaging of "pom" - so this is why I need to explicitly configure this plugin. Suggestions?
Re: Simple filtering question
Doesn't seem that different, but this does work. Can't use includes? org.apache.maven.plugins maven-resources-plugin 2.5 blah-resources process-resources copy-resources . true src/main/resources true On Fri, Apr 13, 2012 at 12:57 PM, Maven User wrote: > Hi all - > > I'm struggling a bit with what seems like a really simple/silly thing. > > I have to use an explicit configuration of the maven-resources-plugin to > copy and filter some resources. > > What I'm seeing, regardless of packaging type, is if you explicitly > configure this plugin, it won't expand ANY properties within the file. > > For grins, I took the same file I wanted to filter, put it in > src/main/resources, added a stanza and boom - everything is > properly filtered. > > Here is the explicit plugin configuration I'm using - anything stand out? > > > org.apache.maven.plugins > maven-resources-plugin > 2.5 > > > default-resources > validate > > resources > > > . > true > > > true > > foo.txt > > > > > > > > > I tried several phases with no luck, so it's not that either. In the > ultimate configuration, this will go into an aggregate pom with packaging > of "pom" - so this is why I need to explicitly configure this plugin. > > Suggestions? > >
Re: Simple filtering question
>> What I'm seeing, regardless of packaging type, is if you explicitly >> configure this plugin, it won't expand ANY properties within the file. I doubt this is what is going on. Lots of people use filters with various configurations applied. >> For grins, I took the same file I wanted to filter, put it in >> src/main/resources, added a stanza and boom - everything is >> properly filtered. This just tells me that your original configuration did not properly define the resource you were wanting to filter, so Maven could not find it, so it did not filter it. Did you try **/foo.txt? Tell us what else you did try so far. Wayne - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org