Maven Project Web Site
  1. Maven Project Web Site
  2. MNGSITE-83

Behavior of Maven when mirror is down should be documented

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Auto Closed
    • Labels:
      None

      Description

      I recently ran into a Maven problem in which standard artifacts that were hosted on Central could not be downloaded. I eventually traced the problem to the use of a mirror. Our team had been using a local installation of Nexus to mirror Central, as described here:

      http://maven.apache.org/guides/mini/guide-mirror-settings.html

      The problem was that the mirror was down. Now, I knew the mirror was down, but I assumed (wrongly) that Maven would try to route around the problem by skipping the downed mirror and obtaining the artifact directly from Central. (It is, after all, only a mirror, not the actual repository.) Instead, if a mirror is down, Maven simply aborts, saying it cannot download the file. This led me to the mistaken conclusion that Central itself was down.

      It would be nice if this problem could be fixed so that a downed mirror doesn't cause Maven to fail, but that might take a lot of work, so in the meantime I'd be happy if the problem were simply documented. Unfortunately, the "Guide to Mirror Settings" in the link above talks a lot about how to declare a mirror, but it doesn't say what Maven does if it can't connect to a mirror. It should be amended to include this information.

        Activity

        Trevor Harmon created issue -
        Hide
        John Bäckstrand added a comment -

        Unless I am mistaken, using a mirror is the way to do it if you want to use an archetype of anything not in central.

        Thats the reason I started using my companies internal repository as a mirror of central, which works perfectly, except of course when I am not connected to the VPN meaning the mirror is effectively offline. The nothing works. (Our projects are also set up so that they replace central with our repo)

        I am surprised this is not fixed yet.

        Show
        John Bäckstrand added a comment - Unless I am mistaken, using a mirror is the way to do it if you want to use an archetype of anything not in central. Thats the reason I started using my companies internal repository as a mirror of central, which works perfectly, except of course when I am not connected to the VPN meaning the mirror is effectively offline. The nothing works. (Our projects are also set up so that they replace central with our repo) I am surprised this is not fixed yet.
        Mark Thomas made changes -
        Field Original Value New Value
        Project Import Sun Apr 05 12:11:45 UTC 2015 [ 1428235905420 ]
        Mark Thomas made changes -
        Workflow jira [ 12723666 ] Default workflow, editable Closed status [ 12762661 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 00:47:18 UTC 2015 [ 1428281238819 ]
        Mark Thomas made changes -
        Workflow jira [ 12961283 ] Default workflow, editable Closed status [ 12997910 ]
        Hide
        Michael Osipov added a comment -

        This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still applies, retest your problem with the most recent version of Maven and the affected component, reopen and post your results.

        Show
        Michael Osipov added a comment - This issue has been auto closed because it has been inactive for a long period of time. If you think this issue still applies, retest your problem with the most recent version of Maven and the affected component, reopen and post your results.
        Michael Osipov made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Auto Closed [ 10000 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        2355d 6h 1m 1 Michael Osipov 06/Sep/15 20:43

          People

          • Assignee:
            Unassigned
            Reporter:
            Trevor Harmon
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development