Re: War deploy; maven archetypes problems; web.xml filtering
Re: War deploy; maven archetypes problems; web.xml filtering
- Subject: Re: War deploy; maven archetypes problems; web.xml filtering
- From: Henrique Prange <email@hidden>
- Date: Wed, 21 Oct 2009 15:03:44 -0200
Hi Greg and Lachlan,
Not in this case. :(
You have to configure the maven-war-plugin to filter deployment
descriptors [1].
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
...
<filteringDeploymentDescriptors>true</filteringDeploymentDescriptors>
</configuration>
</plugin>
Isn't the latest servlet archetype adding this configuration by default?
[1]http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html#filteringDeploymentDescriptors
Cheers,
Henrique
Lachlan Deck wrote:
http://lmgtfy.com/?q=maven+pom+model
<resource>
<directory>src/main/foo</directory>
<filtering>true</filtering>
...
</resource>
:)
On 21/10/2009, at 2:05 PM, Mr. G Brown wrote:
Hi,
I used the woapp-servlet 2.1 archetype to create a simple no wonder
project. If I look in the produced .war file, the web.xml file has
lines lilke:
<web-app>
<display-name>${project.build.finalName}</display-name>
<context-param>
<param-name>WOJarBundle</param-name>
<param-value>YES</param-value>
<description>
Whether this app is a "true" WAR, rather than a "stub" WAR
or SSDD Note that WOROOT, LOCALROOT, WOAINSTALLROOT,
WOClassPath are ignored if this is true However, if this is
true, WOMainBundle must be set to the main bundle name
</description>
</context-param>
<context-param>
<param-name>WOMainBundle</param-name>
<param-value>${project.build.finalName}</param-value>
<description>
Sets the name of the main bundle. Only used if WOJarBundle
is true
</description>
</context-param>
I will guess that the ${project.build.finalName} should be working
with the .pom file to supply a value for that variable.
Is the pom not quite right? That file needs 'filtering'; but what path
is the WEB-INF/web.xml file on?
How does one specify filtering for the web.xml file?
It looks like the Info.plist file gets filtered ok with the 2.1
archetype projects, but not the web.xml file.
Thanks,
gb
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
with regards,
--
Lachlan Deck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden