Hi,

I don't know if what I did is best, so I'm posting for comments.   I've read
some of the postings on this list regarding resource filtering in war
plugin.  I've been able to get it to work using  version 2.0.1 of the
plugin.

In some other posting, the point is made that web resources are not really
resources. This is fine for me, but I have need to filter the web.xml and
context.xml files.

I noticed that if I create src/main/resources/META-INF/context.xml and
src/main/resources/WEB-INF/web.xml, I get two copies of each in my war.  One
copy is from the action of the resource plugin and appears in
${webappDirectory}/WEB-INF/classes/META-INF and WEB-INF , the other from the
action of the warResources that I configured to suck from src/main/resources
and appears where I expect in ${webappDirectory}/META-INF and WEB-INF.

To avoid this:
1) I put the files in src/main/container/META-INF and WEB-INF
2) I configure webResources to filter src/main/container.
3) My src/main/resources is empty
4) I have other files, which do not need to be filtered, in
src/main/webapp/WEB-INF



Regards,
John

-- 
View this message in context: 
http://www.nabble.com/m2%3A-container-config-using-maven-war-plugin-tf2204582.html#a6105417
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to