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 Resources Plugin
  • MRESOURCES-65

filtered resources contains incorrect content

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.2
  • Fix Version/s: 2.3
  • Component/s: None
  • Labels:
    None

Description

A project contains as resource the following Velocity template

src/main/resources/App.txt
${url}
${id}
${version}
${anotherProperty}

${infoBean.url}
${infoBean.id}
${infoBean.anotherProperty}
${infoBean.version}

${infoBean.myUrl}
${infoBean.myId}

${pom.version}

When filtering is set for this file the resulted output is wrong

target/classes/App.txt
http://maven.apache.org
maven.bugs:filtres:jar:1.0-SNAPSHOT
1.0-SNAPSHOT
anotherValue

http://maven.apache.org
maven.bugs:filtres:jar:1.0-SNAPSHOT
${infoBean.anotherProperty}
1.0-SNAPSHOT

${infoBean.myUrl}
${infoBean.myId}

1.0-SNAPSHOT


While it is acceptable to have ${pom.version} replaced or even ${id} or ${version}, the ${infoBean.*} lines should be left untouched as long as such properties are not defined for the project.

A sample project is attached...

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

Attachments

  1. GZip Archive
    filtres.tar.gz
    20/May/08 7:21 AM
    2 kB
    Pappy Razvan STANESCU

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. MRESOURCES-20 Filtering ${foo.file} evaluates to in full path to pom.xml

  • Critical - Crashes, loss of data, severe memory leak.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Olivier Lamy added a comment - 06/Sep/08 5:53 PM

fix with using last maven-filtering version

Show
Olivier Lamy added a comment - 06/Sep/08 5:53 PM fix with using last maven-filtering version

People

  • Assignee:
    Olivier Lamy
    Reporter:
    Pappy Razvan STANESCU
Vote (0)
Watch (1)

Dates

  • Created:
    20/May/08 7:21 AM
    Updated:
    06/Sep/08 5:53 PM
    Resolved:
    06/Sep/08 5:53 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.