Maven Ant Plugin
  1. Maven Ant Plugin
  2. MANT-2

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
    • 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

            • Assignee:
              Vincent Siveton
              Reporter:
              Island Chen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: