You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Koen Roevens (JIRA)" <ji...@codehaus.org> on 2009/02/19 09:38:19 UTC

[jira] Created: (MANTTASKS-141) Using expressions in a mirrorOf element brakes the downloading of depencies

Using expressions in a mirrorOf element brakes the downloading of depencies
---------------------------------------------------------------------------

                 Key: MANTTASKS-141
                 URL: http://jira.codehaus.org/browse/MANTTASKS-141
             Project: Maven 2.x Ant Tasks
          Issue Type: Bug
          Components: dependencies task
    Affects Versions: 2.0.9
            Reporter: Koen Roevens


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>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira