jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x Ant Tasks
  • MANTTASKS-141

Using expressions in a mirrorOf element brakes the downloading of depencies

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 2.0.9
  • Fix Version/s: None
  • Component/s: dependencies task
  • Labels:
    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>

Issue Links

is related to

Improvement - An improvement or enhancement to an existing feature or task. MNG-3461 Enhance Mirror definition syntax

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Jason van Zyl
    Reporter:
    Koen Roevens
Vote (0)
Watch (4)

Dates

  • Created:
    19/Feb/09 2:37 AM
    Updated:
    13/Sep/09 4:07 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.