GitHub user steveloughran opened a pull request:

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

    [SPARK-17058] [build] Add maven snapshots-and-staging profile to build/test 
against staging artifacts

    ## What changes were proposed in this pull request?
    
    Adds a `snapshots-and-staging profile` so that  RCs of projects like Hadoop 
and HBase can be used in developer-only build and test runs. There's a comment 
above the profile telling people not to use this in production.
    
    There's no attempt to do the same for SBT, as Ivy is different.
    
    ## How was this patch tested?
    
    Tested by building against the Hadoop 2.7.3 RC 1 JARs
    
    without the profile (and without any local copy of the 2.7.3 artifacts), 
the build failed
    ```
    mvn install -DskipTests -Pyarn,hadoop-2.7,hive -Dhadoop.version=2.7.3
    
    
    [INFO] 
------------------------------------------------------------------------
    [INFO] Building Spark Project Launcher 2.1.0-SNAPSHOT
    [INFO] 
------------------------------------------------------------------------
    Downloading: 
https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-client/2.7.3/hadoop-client-2.7.3.pom
    [WARNING] The POM for org.apache.hadoop:hadoop-client:jar:2.7.3 is missing, 
no dependency information available
    Downloading: 
https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-client/2.7.3/hadoop-client-2.7.3.jar
    ```
    
    With the profile, the build completed
    ```
    mvn install -DskipTests -Pyarn,hadoop-2.7,hive,snapshots-and-staging 
-Dhadoop.version=2.7.3
    ```

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

    $ git pull https://github.com/steveloughran/spark 
stevel/SPARK-17058-support-asf-snapshots

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

    https://github.com/apache/spark/pull/14646.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 #14646
    
----
commit 09d96bec29c9ac9a58966c603c2c6b3b642eb9d2
Author: Steve Loughran <[email protected]>
Date:   2016-08-15T10:38:30Z

    [SPARK-17058]
    Adds a snapshots-and-staging profile so that  RCs of projects like Hadoop 
and HBase can be used in developer-only build and test runs. There's a comment 
above the profile telling people not to use this in production.

----


---
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