Uploaded image for project: 'Maven Ant Tasks (RETIRED)'
  1. Maven Ant Tasks (RETIRED)
  2. MANTTASKS-141

Using expressions in a mirrorOf element breaks the downloading of dependencies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0.9
    • None
    • dependencies task
    • None

    Description

      Since 2.0.9 Maven supports the usage of expressions in the 'mirrorOf' element
      (See http://maven.apache.org/guides/mini/guide-mirror-settings.html)

      These expression are not wel interpreted by the dependencies task.

      The snippet

          <dependencies pathId="xy1.path" settingsFile="${basedir}/settings.xml">
            <dependency groupId="x" artifactId="y" version="1" type="pom"/>
          </dependencies>
      works when settings.xml is:
      <settings>
        ...
        <mirrors>
          <mirror>
            <mirrorOf>project-releases-repository</mirrorOf>
            <url>http://the.maven.proxy/project...</url>
          </mirror>
          <mirror>
            <mirrorOf>*</mirrorOf>
            <url>http://the.maven.proxy/public...</url>
          </mirror>
        </mirrors>
       ...
      </settings>
      

      It stops working (= not able to download dependency) when settings.xml is:

      <settings>
        ...
        <mirrors>
          <mirror>
            <mirrorOf>*,!project-releases-repository</mirrorOf>
            <url>http://the.maven.proxy/public...</url>
          </mirror>
        </mirrors>
       ...
      </settings>
      

      Attachments

        Issue Links

          Activity

            People

              jvanzyl Jason van Zyl
              koenroevens Koen Roevens
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: