You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paul Gier (JIRA)" <ji...@codehaus.org> on 2011/09/12 18:37:07 UTC

[jira] Created: (MNG-5172) Mirror settings should allow null URL

Mirror settings should allow null URL
-------------------------------------

                 Key: MNG-5172
                 URL: https://jira.codehaus.org/browse/MNG-5172
             Project: Maven 2 & 3
          Issue Type: New Feature
          Components: Settings
            Reporter: Paul Gier


In some cases I want to block, instead of mirror, a particular URL.  I would like to set the mirror URL to blank or null to show that no downloads should be attempted from this repo.
Another use case is if I want to block all repos except for one normal repo and one plugin repo.  So my mirror settings look like this:
{code:xml}
    <mirror>
      <id>restricted-build</id>
      <mirrorOf>
         *,!main-dep-repo,!main-plugin-repo
      </mirrorOf>
      <name>Mirror Settings for release builds</name>
      <url></url>
    </mirror>
{code}

Then later in the settings, the repositories "main-dep-repo" and "main-plugin-repo" are defined.  If only a single URL is used for both deps and plugins, then the URL could be put directly into the mirror settings.  But if there is a different URL for project dependencies vs. plugins, then the mirror URL cannot be used.



--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira