Maven 2.x Ant Tasks

Environment variables are not resolved in settings files

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0.7
  • Fix Version/s: 2.0.8
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

(Pulled Item 2 of Issue 80 out to this Issue):

when i use a settings file in antlib like in
<property name="gs" value="d:/laglap3/HEAD_CI/tools/maven-2.0.7/conf/settings.xml"/>
<install file="target/xxx.jar" settingsFile="${gs}">

and, in the settings file, I use a environment variable, like:
<localRepository>${env.MPA_ROOT}/mavenrepo</localRepository>

then this environment variable MPA_ROOT is NOT resolved to its value.

Note that this is inconsistent to the behaviour of mvn.bat

Issue Links

Activity

Hide
Herve Boutemy added a comment -

fixed in r593783

Show
Herve Boutemy added a comment - fixed in r593783

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: