Maven 2.x Ant Tasks

weak/Inconsistent handling of settings

Details

  • Type: Improvement Improvement
  • 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

There are some differences between the way that maven itself handles it's settings, and the way antlib does.

1. Lookup/Load of Settings Files:

  • in antlib, I can only specify one settingsFile, like this: <install file="target/xxx.jar" settingsFile="${gs}">, that means either the global or the user's one...
  • in maven itself, both settings.xml are combined (see http://maven.apache.org/guides/mini/guide-configuring-maven.html)
    It would make life much easier for antlib users to have the same funcitonality "out of the box", without specifying any settings-file

2. resolving of environment variables in a settings files
(maybe this is a detail or a (negative) consequence of Item 1)
in my global settings file, I have set: <localRepository>${env.MPA_ROOT}/mavenrepo</localRepository>

  • in maven env.MPA_ROOT is resolved to a real directory
  • in antlib, it is not.

Issue Links

Activity

Hide
Gerhard Langs added a comment -

Pulled out Item 2 to a separate Issue (82)

Show
Gerhard Langs added a comment - Pulled out Item 2 to a separate Issue (82)
Hide
Herve Boutemy added a comment -

fixed in r593881

Show
Herve Boutemy added a comment - fixed in r593881

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: