Maven 2.x Ant Plugin

error "maven.repo.local" property in the ant file

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.0-beta-1
  • Fix Version/s: 2.0
  • Component/s: None
  • Labels:
    None
  • Environment:
    Windows 2000
    JDK 1.4.2_05
  • Number of attachments :
    1

Description

i used "m2 ant:ant" to create a ant build file, and found the following line:
<property name="maven.repo.local" value="${user.home}/.m2/repository"/>

but i had changed the "localRepository" to another directory with the "settings.xml" file, so i have to correct it manually!

I hope ant:ant plugin would read the "settings.xml" file to set the "maven.repo.local" property.

Issue Links

Activity

Hide
Brett Porter added a comment -

actually, now that I think about it... we don't want to hardcode a user's path in the script.

Perhaps we could write the property to build.properties instead, and restore the default in the script?

Show
Brett Porter added a comment - actually, now that I think about it... we don't want to hardcode a user's path in the script. Perhaps we could write the property to build.properties instead, and restore the default in the script?
Hide
Vincent Siveton added a comment -

Fixed as Brett suggested

Show
Vincent Siveton added a comment - Fixed as Brett suggested

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: