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
>
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
>
-
>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>> For additional commands, e-mail: users-h...@maven.apache.org
>>
>
>
> -
> To unsubsc
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
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
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
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
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
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
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
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
*.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:
>>
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}
>
>
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
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
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
Hi,
I do it like this:
org.apache.maven.plugins
maven-war-plugin
${basedir}/src/main/webapp/WEB-INF
web.xml
WEB-INF
true
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
>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
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
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
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/
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
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.
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
"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
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
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
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
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
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
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
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
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
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.
-
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
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
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
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
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
40 matches
Mail list logo