jira-importer opened a new issue, #108:
URL: https://github.com/apache/maven-war-plugin/issues/108

   **[Valeriy 
Molyakov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=molyakov)**
 opened 
**[MWAR-171](https://issues.apache.org/jira/browse/MWAR-171?redirect=false)** 
and commented
   
   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.
   
   
   ---
   
   **Affects:** 2.1-alpha-1
   
   **Attachments:**
   - 
[example-project.zip](https://issues.apache.org/jira/secure/attachment/12720504/example-project.zip)
 (_9.81 kB_)
   
   **Issue Links:**
   - [MWAR-133](https://issues.apache.org/jira/browse/MWAR-133) Filtering 
issue: wrong replacement of properties by values from MavenProject object
    (_**"duplicates"**_)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to