jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x WAR Plugin
  • MWAR-171

External Web Resources are not properly filtered

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.1-alpha-1
  • Fix Version/s: 2.1-beta-1
  • Component/s: None
  • Labels:
    None
  • Environment:
    Windows XP SP2
  • Testcase included:
    yes

Description

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.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Hide
    Zip Archive
    example-project.zip
    30/Sep/08 1:18 AM
    10 kB
    Valeriy Molyakov
    1. XML File
      example-project/pom.xml 0.7 kB
    2. XML File
      example-project/parent/pom.xml 1 kB
    3. XML File
      example-project/web/pom.xml 1 kB
    4. File
      example-project/web/src/.../webapp/index.jsp 0.1 kB
    5. XML File
      example-project/web/src/.../WEB-INF/web.xml 0.2 kB
    6. XML File
      example-project/web/.../jetty-env.xml 0.6 kB
    7. File
      example-project/web/.../example-web.war 3 kB
    8. File
      example-project/web/.../index.jsp 0.1 kB
    9. XML File
      example-project/web/.../jetty-env.xml 0.6 kB
    10. XML File
      example-project/web/.../WEB-INF/web.xml 0.2 kB
    11. XML File
      example-project/web/.../webapp-cache.xml 0.4 kB
    Download Zip
    Show
    Zip Archive
    example-project.zip
    30/Sep/08 1:18 AM
    10 kB
    Valeriy Molyakov

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. MWAR-133 Filtering issue: wrong replacement of properties by values from MavenProject object

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Olivier Lamy added a comment - 30/Sep/08 5:52 AM

should be fixed in trunk with last maven-filtering.

Show
Olivier Lamy added a comment - 30/Sep/08 5:52 AM should be fixed in trunk with last maven-filtering.
Hide
Permalink
Olivier Lamy added a comment - 02/Oct/08 3:57 PM

fixed with last maven-filtering (it added thanks).

Show
Olivier Lamy added a comment - 02/Oct/08 3:57 PM fixed with last maven-filtering (it added thanks).

People

  • Assignee:
    Olivier Lamy
    Reporter:
    Valeriy Molyakov
Vote (0)
Watch (0)

Dates

  • Created:
    30/Sep/08 1:18 AM
    Updated:
    02/Oct/08 3:57 PM
    Resolved:
    02/Oct/08 3:57 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.