You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Tim Torbeyns <ti...@gmail.com> on 2008/04/12 14:44:02 UTC
[m2] pom filtering: pom.url vs propertyname.url
Hi,
In my pom.xml file I have the following:
[xml]
<url>some url</url>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<resource>
<directory>src\main\webapp</directory>
<filtering>true</filtering>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<jdbc.url>the url of my database</jdbc.url>
</properties>
[/xml]
In an other xml file, that is located in the src\main\webapp
directory, I have the following:
[xml]
<bean id="dataSource" class="" p:url="${jdbc.url}"/>
[/xml]
This is the output after maven ran:
[xml]
<bean id="dataSource" class="" p:url="some url"/>
[/xml]
What I expected to see was this:
[xml]
<bean id="dataSource" class="" p:url="the url of my database"/>
[/xml]
Am I missing something ?
Thanks in advance.
Tim
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org