You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Olivier Lamy (JIRA)" <ji...@codehaus.org> on 2008/10/02 22:58:08 UTC
[jira] Closed: (MWAR-171) External Web Resources are not properly
filtered
[ http://jira.codehaus.org/browse/MWAR-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy closed MWAR-171.
-----------------------------
Assignee: Olivier Lamy
Resolution: Fixed
Fix Version/s: 2.1
fixed with last maven-filtering (it added thanks).
> External Web Resources are not properly filtered
> ------------------------------------------------
>
> Key: MWAR-171
> URL: http://jira.codehaus.org/browse/MWAR-171
> Project: Maven 2.x War Plugin
> Issue Type: Bug
> Affects Versions: 2.1-alpha-1
> Environment: Windows XP SP2
> Reporter: Valeriy Molyakov
> Assignee: Olivier Lamy
> Fix For: 2.1
>
> Attachments: example-project.zip
>
>
> I have configured an external web resource location in the project's web module
> ..
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <configuration>
> <webResources>
> <resource>
> <directory>${basedir}/src/main/webresources</directory>
> <filtering>true</filtering>
> </resource>
> </webResources>
> </configuration>
> </plugin>
> I need to apply a filter to jetty-env.xml
> ...
> <Arg>
> <New class="oracle.jdbc.pool.OracleConnectionPoolDataSource">
> <Set name="URL">${jdbc.url}</Set>
> <Set name="user">${jdbc.user}</Set>
> <Set name="password">${jdbc.password}</Set>
> </New>
> </Arg>
> ...
> Parent POM contains properties like these:
> ...
> <properties>
> <jdbc.url>jdbc:oracle:thin:@localhost:1521:orcl</jdbc.url>
> <website.url>scp://www.yourcompany.com/www/docs/project</website.url>
> ...
> The result aftre filtering is following:
> ..
> <Arg>
> <New class="oracle.jdbc.pool.OracleConnectionPoolDataSource">
> <Set name="URL">http://maven.apache.org</Set>
> ...
> I have enclosed example project.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira