Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5172

Mirror settings should allow null URL

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • None
    • None
    • Settings
    • None

    Description

      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:

          <mirror>
            <id>restricted-build</id>
            <mirrorOf>
               *,!main-dep-repo,!main-plugin-repo
            </mirrorOf>
            <name>Mirror Settings for release builds</name>
            <url></url>
          </mirror>
      

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pgier Paul Gier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: