Uploaded image for project: 'Maven Ant Plugin'
  1. Maven Ant Plugin
  2. MANT-2

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

    Details

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

      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
          siveton Siveton Vincent added a comment -

          Fixed as Brett suggested

          Show
          siveton Siveton Vincent added a comment - Fixed as Brett suggested
          Hide
          brettporter 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
          brettporter 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?

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development