Re: Filtering web.xml?

2012-11-06 Thread Thomas Broyer
On Tue, Nov 6, 2012 at 4:45 PM, Billy Newman wrote: > I am trying to filter my web.xml with no luck. > > Current structure: > pom.xml > --> src > --->main > >webapp > ->WEB-INF > -->web.xml > > I have the war plugin defined as follows: > > > org.apache.maven.plugins >

Re: Filtering web.xml?

2012-11-06 Thread Tomasz Pik
On Tue, Nov 6, 2012 at 4:45 PM, Billy Newman wrote: > I am trying to filter my web.xml with no luck. > > Current structure: > pom.xml > --> src > --->main > >webapp > ->WEB-INF > -->web.xml > > I have the war plugin defined as follows: > > > org.apache.maven.plugins >

Re: filtering web.xml

2009-05-06 Thread the_tfulton
- >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> > > > - > To unsubsc

Correct way to filtering web.xml with maven-war-plugin 2.1-alpha-1

2008-07-02 Thread Henri Gomez
Hi to all, I need to filter the web.xml in some webapp : I tried with : org.apache.maven.plugins maven-antrun-plugin generate-resources run

Re: filtering web.xml

2008-06-20 Thread Henri Gomez
Any news about this problem ? 2008/5/17 Henri Gomez <[EMAIL PROTECTED]>: > 2008/5/17 Tim Kettler <[EMAIL PROTECTED]>: >> There's currently a discussion on the dev list [1] about releasing the next >> version of the war plugin. I posted there yesterday that this bug should be >> fixed before a rele

Re: filtering web.xml

2008-05-17 Thread Henri Gomez
2008/5/17 Tim Kettler <[EMAIL PROTECTED]>: > There's currently a discussion on the dev list [1] about releasing the next > version of the war plugin. I posted there yesterday that this bug should be > fixed before a release, you can express your opinion there as well. I'll send a note on the dev l

Re: filtering web.xml

2008-05-16 Thread Tim Kettler
There's currently a discussion on the dev list [1] about releasing the next version of the war plugin. I posted there yesterday that this bug should be fixed before a release, you can express your opinion there as well. Additionally, you can vote on the bug report in jira, to make it more visib

Re: filtering web.xml

2008-05-16 Thread Henri Gomez
There is a patch provided in http://jira.codehaus.org/browse/MWAR-133. How can I contact the maintener for a fix ? 2008/5/16 Henri Gomez <[EMAIL PROTECTED]>: > I tested with 2.1-alpha and same problem ;( > > 2008/5/16 Tim Kettler <[EMAIL PROTECTED]>: >> It's a bug in the war plugin. The resource

Re: filtering web.xml

2008-05-16 Thread Henri Gomez
I tested with 2.1-alpha and same problem ;( 2008/5/16 Tim Kettler <[EMAIL PROTECTED]>: > It's a bug in the war plugin. The resource filtering is seriously borked > there, see here [1] for a bug report back from Nov 2007. The obvious and > simple workaround would be to filter web.xml as a normal re

Re: filtering web.xml

2008-05-16 Thread Tim Kettler
It's a bug in the war plugin. The resource filtering is seriously borked there, see here [1] for a bug report back from Nov 2007. The obvious and simple workaround would be to filter web.xml as a normal resource in a custom invocation of the resource plugin. But unfortunately there is a bug in

Re: filtering web.xml

2008-05-16 Thread Henri Gomez
I suspect something weird in maven-war plugin (2.0.2) since I get the same error from m2eclipse which use maven 2.1 embedded 2008/5/16 Henri Gomez <[EMAIL PROTECTED]>: > *.version => pom.version > > *.name => pom.name > > 2008/5/16 Henri Gomez <[EMAIL PROTECTED]>: >> Problem in maven-war 2.0.2 or

Re: filtering web.xml

2008-05-16 Thread Henri Gomez
*.version => pom.version *.name => pom.name 2008/5/16 Henri Gomez <[EMAIL PROTECTED]>: > Problem in maven-war 2.0.2 or in maven 2.0.9 ? > > 2008/5/16 Tim Kettler <[EMAIL PROTECTED]>: >> Strange, indeed. >> >> Looks like a bug to me. I tried with this in web.xml and no filter property >> files: >>

Re: filtering web.xml

2008-05-16 Thread Henri Gomez
Problem in maven-war 2.0.2 or in maven 2.0.9 ? 2008/5/16 Tim Kettler <[EMAIL PROTECTED]>: > Strange, indeed. > > Looks like a bug to me. I tried with this in web.xml and no filter property > files: > > pom.name: ${pom.name} > user.name: ${user.name} > name: ${name} > foo.name: ${foo.name} > >

Re: filtering web.xml

2008-05-16 Thread Tim Kettler
Strange, indeed. Looks like a bug to me. I tried with this in web.xml and no filter property files: pom.name: ${pom.name} user.name: ${user.name} name: ${name} foo.name: ${foo.name} pom.version: ${pom.version} os.version: ${os.version} version: ${version} foo.version: ${foo.ve

Re: filtering web.xml

2008-05-16 Thread Henri Gomez
Strange. I could get thru filter ${user.home} or ${java.version} but not ${user.name} Any idea ? 2008/5/16 Henri Gomez <[EMAIL PROTECTED]>: > Many thanks Tim. > > I was using the same thing, excepted WEB-INF > > It works now ! > > 2008/5/16 Tim Kettler <[EMAIL PROTECTED]>: >> Hi, >> >> I do it l

Re: filtering web.xml

2008-05-16 Thread Henri Gomez
Many thanks Tim. I was using the same thing, excepted WEB-INF It works now ! 2008/5/16 Tim Kettler <[EMAIL PROTECTED]>: > Hi, > > I do it like this: > > > > >org.apache.maven.plugins >maven-war-plugin > > > > ${basedir}/src/m

Re: filtering web.xml

2008-05-16 Thread Tim Kettler
Hi, I do it like this: org.apache.maven.plugins maven-war-plugin ${basedir}/src/main/webapp/WEB-INF web.xml WEB-INF true

filtering web.xml

2008-05-15 Thread Henri Gomez
Hi to all, In a war project I'd like to filter the src/main/webapp/WEB-INF/web.xml : ie : update the display name to include the pom version My Site Application v${pom.version} I read some threads and it's not clear if it should be done by web-resources or standard filtering. ie : http

RE: [m2] Filtering web.xml?

2008-02-26 Thread Henri Gomez
>I had similar problem with a webapp I developed few months ago, so I used this war filtering >feature to add build number and deploy time and other informations to jsp files as comment >tags filtered by maven. Could you tell us how you do that ? It's really simple to changes web.xml contents wit

RE: [m2] Filtering web.xml?

2008-02-04 Thread Allen, Daniel
ere? I may not know enough yet to seriously contribute to the documents, but I can manage small chores like cross-referencing. ;) Anyway, thanks for the link, Wayne. ~Dan Allen -Original Message- From: Allen, Daniel Sent: Monday, February 04, 2008 11:58 AM To: Maven Users List Subje

RE: [m2] Filtering web.xml?

2008-02-04 Thread Allen, Daniel
Nevermind about the overlays; I found a docs page on that. -Original Message- From: Allen, Daniel Sent: Monday, February 04, 2008 11:08 AM To: Maven Users List Subject: RE: [m2] Filtering web.xml? Wayne: I thought having war in your pom.xml was a shortcut to calling war:war, with Maven

RE: [m2] Filtering web.xml?

2008-02-04 Thread Allen, Daniel
fies overlays." -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: Friday, February 01, 2008 6:36 PM To: Maven Users List Subject: Re: [m2] Filtering web.xml? The war plugin has a configuration you can use for this : http://maven.apache.org/plugins/maven-war-plugin/

Re: [m2] Filtering web.xml?

2008-02-04 Thread Insitu
Hello, I had similar problem with a webapp I developed few months ago, so I used this war filtering feature to add build number and deploy time and other informations to jsp files as comment tags filtered by maven. Regards, -- Arnaud Bailly, PhD OQube - Software Engineering http://www.oqube.com

Re: [m2] Filtering web.xml?

2008-02-03 Thread James Carman
On 2/3/08, James Carman <[EMAIL PROTECTED]> wrote: > On 2/3/08, Insitu <[EMAIL PROTECTED]> wrote: > > "Allen, Daniel" <[EMAIL PROTECTED]> writes: > > > > > I'm building a web application (packaging WAR), and I need to run the > > > web.xml file through a filter to set certain configutation values.

Re: [m2] Filtering web.xml?

2008-02-03 Thread James Carman
On 2/3/08, Insitu <[EMAIL PROTECTED]> wrote: > "Allen, Daniel" <[EMAIL PROTECTED]> writes: > > > I'm building a web application (packaging WAR), and I need to run the > > web.xml file through a filter to set certain configutation values. I > > tried adding it to a tag, but that causes Maven to mak

Re: [m2] Filtering web.xml?

2008-02-03 Thread Insitu
"Allen, Daniel" <[EMAIL PROTECTED]> writes: > I'm building a web application (packaging WAR), and I need to run the > web.xml file through a filter to set certain configutation values. I > tried adding it to a tag, but that causes Maven to make a > copy of it and put it in WEB-INF/classes subdire

Re: [m2] Filtering web.xml?

2008-02-01 Thread Olivier Lamy
Hi, What you can try is to add your web.xml in resources with filtering to true. And set webXml in the mojo to ${project.build.outputDirectory}/web.xml. -- Olivier 2008/2/2, Allen, Daniel <[EMAIL PROTECTED]>: > I'm building a web application (packaging WAR), and I need to run the > web.xml file

Re: [m2] Filtering web.xml?

2008-02-01 Thread Wayne Fay
The war plugin has a configuration you can use for this : http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html That should do it... Wayne On 2/1/08, Allen, Daniel <[EMAIL PROTECTED]> wrote: > I'm building a web application (packaging WAR), and I need to run the > web.xml file through a

[m2] Filtering web.xml?

2008-02-01 Thread Allen, Daniel
I'm building a web application (packaging WAR), and I need to run the web.xml file through a filter to set certain configutation values. I tried adding it to a tag, but that causes Maven to make a copy of it and put it in WEB-INF/classes subdirectory with all of the rest of the resources. I tried

Re: filtering web.xml

2006-10-30 Thread Valerio Schiavoni
for sake of completeness, i also tried with maven-war-plugin version 2.0.1 . here is the stacktrace: [INFO] Failure Embedded error: IOException parsing XML document from ServletContext resource [/${dbms.filter}]; nested exception is java.io.FileNotFoundException: Could not open ServletContext re

filtering web.xml

2006-10-30 Thread Valerio Schiavoni
hello everyone, i know this has been discussed recently (also here: http://www.nabble.com/War-plugin-and-filtering-webapp-files-t1617964.html) , but thevarious solutions and hacks proposed haven't solved my issue :( Consider this snippet of web.xml: contextConfigLocation

Re: filtering web.xml with profile properties

2006-09-17 Thread franz see
NF dirs, I guess maybe because filtering for the former is done by maven-resource-plugin, and not by maven-war-plugin...not sure about this though. Cheers, Franz [1] http://jira.codehaus.org/browse/MWAR-67 -- View this message in context: http://www.nabble.com/filtering-web.xml-with-profile-prop

Re: filtering web.xml with profile properties

2006-09-15 Thread ertnutler
strange. i got it to work by changing the resource directory from ${basedir}/src/main/webapp/WEB-INF to ${basedir}/src/main/webapp. i can't explain why it doesn't work for WEB-INF... -- View this message in context: http://www.nabble.com/filtering-web.xml-with-profile-properties

Re: filtering web.xml with profile properties

2006-09-15 Thread ertnutler
it works fine when i use a filter file, but i want to use properties defined in profiles. the resources plugin uses them appropriately. any idea when the war plugin will do the same? -- View this message in context: http://www.nabble.com/filtering-web.xml-with-profile-properties-tf2272626

Re: filtering web.xml with profile properties

2006-09-14 Thread franz see
ug (see [1]). Cheers, Franz [1] http://jira.codehaus.org/browse/MWAR-67 -- View this message in context: http://www.nabble.com/filtering-web.xml-with-profile-properties-tf2272626.html#a6317667 Sent from the Maven - Users forum at Nabble.com. -

filtering web.xml with profile properties

2006-09-14 Thread ertnutler
ce... -- View this message in context: http://www.nabble.com/filtering-web.xml-with-profile-properties-tf2272626.html#a6309369 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: filtering web.xml

2006-05-21 Thread Marco Mistroni
Hello Mark, thx... it worked just fine rgds marco On 5/21/06, Mark Hobson <[EMAIL PROTECTED]> wrote: Just tested whether web resource filtering also filters web.xml and it does. Check this thread for details on web resource filtering itself: http://www.nabble.com/War+plugin+and+filteri

Re: filtering web.xml

2006-05-21 Thread Mark Hobson
Just tested whether web resource filtering also filters web.xml and it does. Check this thread for details on web resource filtering itself: http://www.nabble.com/War+plugin+and+filtering+webapp+files-t1617964.html Mark On 21/05/06, Kevin Galligan <[EMAIL PROTECTED]> wrote: I've been having s

Re: filtering web.xml

2006-05-21 Thread Kevin Galligan
I've been having some issues with things like this in the war build. There is a way to process resources in the war build plugin. You'll have to dig around the mailing list for 'webResources'. If what you want to do is more complicated, you can take a look at this thread... http://www.nabble.c

filtering web.xml

2006-05-21 Thread Marco Mistroni
hello all, i was wonderring, is there a way, in Maven2, to filter also web.xml (i placed it in src/main/webapp/WEB-INF) directory without resortingto a hardcocded ant task taht copies the file from /resources/ to webapp/WEB-INF? thanks and regards marco