You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by ta...@apache.org on 2019/05/09 21:41:38 UTC

[impala] branch master updated: IMPALA-8527: disable apache.snapshots.https repo

This is an automated email from the ASF dual-hosted git repository.

tarmstrong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git


The following commit(s) were added to refs/heads/master by this push:
     new 446ae49  IMPALA-8527: disable apache.snapshots.https repo
446ae49 is described below

commit 446ae499a7fd4bb1f018d2d8a90a442d283c76d0
Author: Tim Armstrong <ta...@cloudera.com>
AuthorDate: Thu May 9 10:34:07 2019 -0700

    IMPALA-8527: disable apache.snapshots.https repo
    
    The apache repos are referred to by this name in poms of some of our
    dependencies, e.g. Hadoop. Apparently the name needs to match for
    blacklisting to be effective - see https://stackoverflow.com/questions/
    1754495/how-to-manually-disable-blacklist-maven-repository
    
    Testing:
    Compiled test-hive-udfs with "mvn -U -X package" after blowing away
    ~/.m2/repository. Confirmed that repository.apache.org was not
    contacted after this change (it was before the change).
    
    Change-Id: I75cefc32d5e2359aff539a1790ad034718692377
    Reviewed-on: http://gerrit.cloudera.org:8080/13296
    Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
    Tested-by: Tim Armstrong <ta...@cloudera.com>
---
 impala-parent/pom.xml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/impala-parent/pom.xml b/impala-parent/pom.xml
index e7c08fc..355bc05 100644
--- a/impala-parent/pom.xml
+++ b/impala-parent/pom.xml
@@ -81,6 +81,21 @@ under the License.
       </snapshots>
     </repository>
     <repository>
+      <!--
+       Hadoop defines the same repo with this name. We need to include it here to
+      effectively blacklist it.
+      -->
+      <id>apache.snapshots.https</id>
+      <name>Apache Development Snapshot Repository</name>
+      <url>https://repository.apache.org/content/repositories/snapshots/</url>
+      <releases>
+        <enabled>false</enabled>
+      </releases>
+      <snapshots>
+        <enabled>false</enabled>
+      </snapshots>
+    </repository>
+    <repository>
       <id>apache</id>
       <name>Apache Repository</name>
       <url>https://repository.apache.org/content/repositories/</url>