You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sri Sankaran <Sr...@sas.com> on 2010/02/03 17:07:31 UTC
Interpolation of HTML files
This basic Maven operation has me stumped. How can I get Maven to
interpolate HTML files that are in src/main/webapp? Is filtering not
implicit when the WAR plugin copies files from src/main/webapp?
I have a typical web application with an index.html in src/main/webapp:
<HTML>
The usual stuff
...
${server.url} link text
...
In the POM I define a profile that defines the propety ${server.url}.
<profile>
<id>DEV</id>
<properties>
<property>
<server.url>http://www.yahoo.com</server.url>
....
The profile is activated thusly
mvn clean install -P DEV
I know that the profile is being activated by viewing the properties listed
when I run with the -X flag.
Yet, the ${server.url} in index.html isn't being replaced by
http://www.yahoo.com.
Can you please shed some light?
--
View this message in context: http://old.nabble.com/Interpolation-of-HTML-files-tp27438828p27438828.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Interpolation of HTML files
Posted by Sri Sankaran <Sr...@sas.com>.
OK. So that leads me to the question "how"?
The docs only talk of filtering deployment descriptors
(http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html) and
resources
(http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html).
Sri
Wayne Fay wrote:
>
>> This basic Maven operation has me stumped. How can I get Maven to
>> interpolate HTML files that are in src/main/webapp? Is filtering not
>> implicit when the WAR plugin copies files from src/main/webapp?
>
> No, it is not. You must specify it.
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://old.nabble.com/Interpolation-of-HTML-files-tp27438828p27439032.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Interpolation of HTML files
Posted by Wayne Fay <wa...@gmail.com>.
> This basic Maven operation has me stumped. How can I get Maven to
> interpolate HTML files that are in src/main/webapp? Is filtering not
> implicit when the WAR plugin copies files from src/main/webapp?
No, it is not. You must specify it.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Interpolation of HTML files
Posted by Sri Sankaran <Sr...@sas.com>.
Yep. That was it. Thanks.
I did see that page earlier but dismissed it since I thought it applied to
external resources and I didn't consider src/main/webapp an "external
resource".
You live and learn.
Thanks
Sri
Karl Heinz Marbaise wrote:
>
> Hi,
>
>
> Sri Sankaran wrote:
>> Is filtering not implicit when the WAR plugin copies files from
>> src/main/webapp?
> As far as i understand the docs
> http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
> No...you have to explicit activate it for particular file types...
>
> Kind regards
> Karl Heinz Marbaise
>
--
View this message in context: http://old.nabble.com/Interpolation-of-HTML-files-tp27438828p27439114.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Interpolation of HTML files
Posted by Karl Heinz Marbaise <ka...@soebes.de>.
Hi,
Sri Sankaran wrote:
> Is filtering not implicit when the WAR plugin copies files from
> src/main/webapp?
As far as i understand the docs
http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
No...you have to explicit activate it for particular file types...
Kind regards
Karl Heinz Marbaise
--
View this message in context: http://old.nabble.com/Interpolation-of-HTML-files-tp27438828p27438997.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org