RE: keep out META-INF/context.xml
I'm not 100% sure (still new at Maven myself) but I believe that copying files to webapp/* takes place in a different phase. So what I think is happening is that you've excluded the context.xml file from your main resources phase, but it gets included in the WAR packaging secondary resource phase, which is when Maven starts dealing with webapp stuff. Try adding this to your POM: plugins plugin artifactIdmaven-war-plugin/artifactId executions execution configuration webResources !-- These resources need to go into WEB-INF, which only exists after the package phase (the normal resources tags are processed in compile generate-sources), so the WAR plug-in handles them instead of the main program. -- resource directory/src/main/webapp/META-INF/directory targetPathWEB-INF/targetPath excludes exclude**/context.xml/exclude /excludes /resource /webResources /configuration /execution /executions /plugin . . (other plugins) . /plugins You might have to change the directory, and I think you might be able to delete the target path element, but I believe that should get the WAR packaging phase to ignore the context file. Hope that helps. ~Dan Allen -- This message may contain confidential, proprietary, or legally privileged information. No confidentiality or privilege is waived by any transmission to an unintended recipient. If you are not an intended recipient, please notify the sender and delete this message immediately. Any views expressed in this message are those of the sender, not those of any entity within the KBC Financial Products group of companies (together referred to as KBC FP). This message does not create any obligation, contractual or otherwise, on the part of KBC FP. It is not an offer (or solicitation of an offer) of, or a recommendation to buy or sell, any financial product. Any prices or other values included in this message are indicative only, and do not necessarily represent current market prices, prices at which KBC FP would enter into a transaction, or prices at which similar transactions may be carried on KBC FP's own books. The information contained in this message is provided as is, without representations or warranties, express or implied, of any kind. Past performance is not indicative of future returns. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: keep out META-INF/context.xml
I'm just bumping this email back up the listserv stack to see if anyone knows how I can do this :) thanks Alessandro Ferrucci Alessandro Ferrucci wrote: hey guys I'm trying to exclude a context.xml from a webapp. I have the following snippet in my build element: resources resource directorysrc/main/resources/directory excludes exclude**/application.jmx.properties/exclude exclude**/log4j.properties/exclude /excludes /resource resource directorysrc/main/java/webapp/META-INF/directory excludes exclude**/context.xml/exclude /excludes /resource /resources my directory structure over context.xml looks like this: src/main/java/webapp/META-INF/context.xml context.xml is still not being excluded, but application.jmx.properties and log4j.properties are, anyone know what gives? Thanks Alessandro Ferrucci - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: keep out META-INF/context.xml
Alessandro Ferrucci wrote: I'm just bumping this email back up the listserv stack to see if anyone knows how I can do this :) thanks Alessandro Ferrucci Alessandro Ferrucci wrote: hey guys I'm trying to exclude a context.xml from a webapp. I have the following snippet in my build element: resources resource directorysrc/main/resources/directory excludes exclude**/application.jmx.properties/exclude exclude**/log4j.properties/exclude /excludes /resource resource directorysrc/main/java/webapp/META-INF/directory excludes exclude**/context.xml/exclude /excludes /resource /resources my directory structure over context.xml looks like this: src/main/java/webapp/META-INF/context.xml context.xml is still not being excluded, but application.jmx.properties and log4j.properties are, anyone know what gives? You *need* a context.xml for a web app and the context.xml is defined by a configuration parameter. Therefore exclusions don't apply here :) - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: keep out META-INF/context.xml
Well actually you don't NEED to have the context.xml in a webapp, WEB-INF is required but META-INF/context.xml is not required (perhaps maven assumes that it's required, but that is a different argument). Is there an override param/element to have it excluded? Or am I screwed in this scenario? Is there NO way to do it? Also what do you mean by: context.xml is defined by a configuration paramater On 4/24/08 11:39 AM, Jörg Schaible [EMAIL PROTECTED] wrote: Alessandro Ferrucci wrote: I'm just bumping this email back up the listserv stack to see if anyone knows how I can do this :) thanks Alessandro Ferrucci Alessandro Ferrucci wrote: hey guys I'm trying to exclude a context.xml from a webapp. I have the following snippet in my build element: resources resource directorysrc/main/resources/directory excludes exclude**/application.jmx.properties/exclude exclude**/log4j.properties/exclude /excludes /resource resource directorysrc/main/java/webapp/META-INF/directory excludes exclude**/context.xml/exclude /excludes /resource /resources my directory structure over context.xml looks like this: src/main/java/webapp/META-INF/context.xml context.xml is still not being excluded, but application.jmx.properties and log4j.properties are, anyone know what gives? You *need* a context.xml for a web app and the context.xml is defined by a configuration parameter. Therefore exclusions don't apply here :) - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: keep out META-INF/context.xml
Did you not see Daniel Allen's response to your original email? Did you try his suggested configuration? What happened when you tried, did it not work? Wayne On 4/24/08, Alessandro Ferrucci [EMAIL PROTECTED] wrote: Well actually you don't NEED to have the context.xml in a webapp, WEB-INF is required but META-INF/context.xml is not required (perhaps maven assumes that it's required, but that is a different argument). Is there an override param/element to have it excluded? Or am I screwed in this scenario? Is there NO way to do it? Also what do you mean by: context.xml is defined by a configuration paramater On 4/24/08 11:39 AM, Jörg Schaible [EMAIL PROTECTED] wrote: Alessandro Ferrucci wrote: I'm just bumping this email back up the listserv stack to see if anyone knows how I can do this :) thanks Alessandro Ferrucci Alessandro Ferrucci wrote: hey guys I'm trying to exclude a context.xml from a webapp. I have the following snippet in my build element: resources resource directorysrc/main/resources/directory excludes exclude**/application.jmx.properties/exclude exclude**/log4j.properties/exclude /excludes /resource resource directorysrc/main/java/webapp/META-INF/directory excludes exclude**/context.xml/exclude /excludes /resource /resources my directory structure over context.xml looks like this: src/main/java/webapp/META-INF/context.xml context.xml is still not being excluded, but application.jmx.properties and log4j.properties are, anyone know what gives? You *need* a context.xml for a web app and the context.xml is defined by a configuration parameter. Therefore exclusions don't apply here :) - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: keep out META-INF/context.xml
I tried Daniel's suggestion but that unfortunately did not work. Alessandro Ferrucci :) On 4/24/08 12:13 PM, Wayne Fay [EMAIL PROTECTED] wrote: Did you not see Daniel Allen's response to your original email? Did you try his suggested configuration? What happened when you tried, did it not work? Wayne On 4/24/08, Alessandro Ferrucci [EMAIL PROTECTED] wrote: Well actually you don't NEED to have the context.xml in a webapp, WEB-INF is required but META-INF/context.xml is not required (perhaps maven assumes that it's required, but that is a different argument). Is there an override param/element to have it excluded? Or am I screwed in this scenario? Is there NO way to do it? Also what do you mean by: context.xml is defined by a configuration paramater On 4/24/08 11:39 AM, Jörg Schaible [EMAIL PROTECTED] wrote: Alessandro Ferrucci wrote: I'm just bumping this email back up the listserv stack to see if anyone knows how I can do this :) thanks Alessandro Ferrucci Alessandro Ferrucci wrote: hey guys I'm trying to exclude a context.xml from a webapp. I have the following snippet in my build element: resources resource directorysrc/main/resources/directory excludes exclude**/application.jmx.properties/exclude exclude**/log4j.properties/exclude /excludes /resource resource directorysrc/main/java/webapp/META-INF/directory excludes exclude**/context.xml/exclude /excludes /resource /resources my directory structure over context.xml looks like this: src/main/java/webapp/META-INF/context.xml context.xml is still not being excluded, but application.jmx.properties and log4j.properties are, anyone know what gives? You *need* a context.xml for a web app and the context.xml is defined by a configuration parameter. Therefore exclusions don't apply here :) - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: keep out META-INF/context.xml
Hello folks, I solved this issue, what got it to work was including warSourceExcludes META-INF/context.xml /warSourceExcludes In the configuration element of my maven-war-plugin. Thanks for Alan Stoll for pointing this out. Alessandro Ferrucci :) On 4/24/08 1:27 PM, Alessandro Ferrucci [EMAIL PROTECTED] wrote: I tried Daniel's suggestion but that unfortunately did not work. Alessandro Ferrucci :) On 4/24/08 12:13 PM, Wayne Fay [EMAIL PROTECTED] wrote: Did you not see Daniel Allen's response to your original email? Did you try his suggested configuration? What happened when you tried, did it not work? Wayne On 4/24/08, Alessandro Ferrucci [EMAIL PROTECTED] wrote: Well actually you don't NEED to have the context.xml in a webapp, WEB-INF is required but META-INF/context.xml is not required (perhaps maven assumes that it's required, but that is a different argument). Is there an override param/element to have it excluded? Or am I screwed in this scenario? Is there NO way to do it? Also what do you mean by: context.xml is defined by a configuration paramater On 4/24/08 11:39 AM, Jörg Schaible [EMAIL PROTECTED] wrote: Alessandro Ferrucci wrote: I'm just bumping this email back up the listserv stack to see if anyone knows how I can do this :) thanks Alessandro Ferrucci Alessandro Ferrucci wrote: hey guys I'm trying to exclude a context.xml from a webapp. I have the following snippet in my build element: resources resource directorysrc/main/resources/directory excludes exclude**/application.jmx.properties/exclude exclude**/log4j.properties/exclude /excludes /resource resource directorysrc/main/java/webapp/META-INF/directory excludes exclude**/context.xml/exclude /excludes /resource /resources my directory structure over context.xml looks like this: src/main/java/webapp/META-INF/context.xml context.xml is still not being excluded, but application.jmx.properties and log4j.properties are, anyone know what gives? You *need* a context.xml for a web app and the context.xml is defined by a configuration parameter. Therefore exclusions don't apply here :) - Jörg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
keep out META-INF/context.xml
hey guys I'm trying to exclude a context.xml from a webapp. I have the following snippet in my build element: resources resource directorysrc/main/resources/directory excludes exclude**/application.jmx.properties/exclude exclude**/log4j.properties/exclude /excludes /resource resource directorysrc/main/java/webapp/META-INF/directory excludes exclude**/context.xml/exclude /excludes /resource /resources my directory structure over context.xml looks like this: src/main/java/webapp/META-INF/context.xml context.xml is still not being excluded, but application.jmx.properties and log4j.properties are, anyone know what gives? Thanks Alessandro Ferrucci - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]