Skip to content

Conversation

@JoshRosen
Copy link
Contributor

archive.apache.org is undergoing maintenance, breaking our build/mvn script:

We are in the process of relocating this service. To save on the immense bandwidth that this service outputs, we have put it in maintenance mode, disabling all downloads for the next few days. We expect the maintenance to be complete no later than the morning of Monday the 11th of April, 2016.

This patch fixes this issue by updating the script to use the regular mirror network to download Maven.

@JoshRosen JoshRosen changed the title [BUILD][HOTFIX] Download Maven from regular mirror network rather than archive.apache… [BUILD][HOTFIX] Download Maven from regular mirror network rather than archive.apache.org Apr 8, 2016
@zsxwing
Copy link
Member

zsxwing commented Apr 8, 2016

LGTM

install_mvn() {
local MVN_VERSION="3.3.9"
local APACHE_MIRROR=${APACHE_MIRROR:-https://archive.apache.org/dist}
local APACHE_MIRROR=${APACHE_MIRROR:-'https://www.apache.org/dyn/closer.lua?action=download&filename='}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 i didn't know you could get a direct download out of the closer.lua redirector. Looks like it works.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I had to search around a bit and found a couple examples of other scripts / projects doing this. It's a bummer that this isn't authoritatively documented anywhere.

@JoshRosen
Copy link
Contributor Author

We should probably apply a similar fix in the other active backport branches so that their tests don't fail. The patch will be slightly different, though, because those branches are missing #12250.

@JoshRosen
Copy link
Contributor Author

Merging to master now.

@asfgit asfgit closed this in 94ac58b Apr 8, 2016
@JoshRosen JoshRosen deleted the fix-mvn-download branch April 8, 2016 18:31
@SparkQA
Copy link

SparkQA commented Apr 8, 2016

Test build #55373 has finished for PR 12262 at commit 60065a0.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

asfgit pushed a commit that referenced this pull request Apr 11, 2016
…n archive.apache.org

[archive.apache.org](https://archive.apache.org/) is undergoing maintenance, breaking our `build/mvn` script:

> We are in the process of relocating this service. To save on the immense bandwidth that this service outputs, we have put it in maintenance mode, disabling all downloads for the next few days. We expect the maintenance to be complete no later than the morning of Monday the 11th of April, 2016.

This patch fixes this issue by updating the script to use the regular mirror network to download Maven.

(This is a backport of #12262 to 1.6)

Author: Josh Rosen <[email protected]>

Closes #12307 from JoshRosen/fix-1.6-mvn-download.
zzcclp pushed a commit to zzcclp/spark that referenced this pull request Apr 12, 2016
…n archive.apache.org

[archive.apache.org](https://archive.apache.org/) is undergoing maintenance, breaking our `build/mvn` script:

> We are in the process of relocating this service. To save on the immense bandwidth that this service outputs, we have put it in maintenance mode, disabling all downloads for the next few days. We expect the maintenance to be complete no later than the morning of Monday the 11th of April, 2016.

This patch fixes this issue by updating the script to use the regular mirror network to download Maven.

(This is a backport of apache#12262 to 1.6)

Author: Josh Rosen <[email protected]>

Closes apache#12307 from JoshRosen/fix-1.6-mvn-download.

(cherry picked from commit f4110cd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants