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 Ant Tasks
  • MANTTASKS-93

variables not interpolated while reading settings.xml

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 2.0.7
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

I suspect that variables are not interpolated while reading settings.xml.

For instance, I have set the environment variable REPO_DIR=c:/.m2repo. However, my <localRepository> setting is not respected if i use a ${env.variable} for the localRepository. I also tried adding -DREPO_DIR=c:/.m2repo to ANT_OPTS and using ${variable}, but still no luck.

I was only able to test this in ~/.m2/settings.xml , and ~/.ant/settings.xml, because of MANTTASKS-92

~/.m2/settings.xml
<settings>
    <!-- OK  -->
    <localRepository>c:/.m2repo</localRepository>
    <!-- NOT ok  -->
    <!--localRepository>${env.REPO_DIR}</localRepository-->
    <!-- NOT ok  -->
    <!--localRepository>${REPO_DIR}</localRepository-->
</settings>

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. MANTTASKS-82 Environment variables are not resolved in settings files

  • Major - Major loss of function.
  • 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
Herve Boutemy added a comment - 05/Nov/07 6:22 AM

this is a duplicate of MANTTASKS-82

Show
Herve Boutemy added a comment - 05/Nov/07 6:22 AM this is a duplicate of MANTTASKS-82

People

  • Assignee:
    Herve Boutemy
    Reporter:
    Richard Ziegler
Vote (0)
Watch (2)

Dates

  • Created:
    28/Oct/07 1:33 AM
    Updated:
    05/Nov/07 6:22 AM
    Resolved:
    05/Nov/07 6:22 AM
  • 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.