GitHub user markgrover opened a pull request:

    https://github.com/apache/spark/pull/12250

    [SPARK-SPARK-14477] [COMPONENT] Title: Allow custom mirrors for downloading 
artifacts in build/mvn

    ## What changes were proposed in this pull request?
    
    Allows to override locations for downloading Apache and Typesafe artifacts 
in build/mvn script.
    
    
    ## How was this patch tested?
    By running script like
    ````
    # Remove all previously downloaded artifacts
    rm -rf build/apache-maven*
    rm -rf build/zinc-*
    rm -rf build/scala-*
    
    # Make sure path is clean and doesn't contain mvn, for example.
    ...
    
    # Run a command without setting anything and make sure it succeeds
    build/mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.6.0 package
    
    # Run a command setting the default location as mirror and make sure it 
succeeds
    APACHE_MIRROR=http://mirror.infra.cloudera.com/apache/ build/mvn -Pyarn 
-Phadoop-2.4 -Dhadoop.version=2.6.0 package
    
    # Do the same without the trailing slash this time and make sure it succeeds
    APACHE_MIRROR=http://mirror.infra.cloudera.com/apache build/mvn -Pyarn 
-Phadoop-2.4 -Dhadoop.version=2.6.0 package
    
    # Do it with a bad URL and make sure it fails
    APACHE_MIRROR=xyz build/mvn -Pyarn -Phadoop-2.4 -Dhadoop.version=2.6.0 
package
    ````

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/markgrover/spark spark-14477

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/12250.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #12250
    
----
commit fcbcf2613035541488a25b0ec4c9a781e7c71b1b
Author: Mark Grover <[email protected]>
Date:   2016-04-08T00:24:51Z

    [SPARK-14477][BUILD] Allow custom mirrors for downloading artifacts in 
build/mvn

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to