Return-Path: X-Original-To: apmail-crunch-dev-archive@www.apache.org Delivered-To: apmail-crunch-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 28DC31015F for ; Wed, 26 Mar 2014 02:28:17 +0000 (UTC) Received: (qmail 92955 invoked by uid 500); 26 Mar 2014 02:28:15 -0000 Delivered-To: apmail-crunch-dev-archive@crunch.apache.org Received: (qmail 92890 invoked by uid 500); 26 Mar 2014 02:28:15 -0000 Mailing-List: contact dev-help@crunch.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@crunch.apache.org Delivered-To: mailing list dev@crunch.apache.org Received: (qmail 92878 invoked by uid 500); 26 Mar 2014 02:28:15 -0000 Delivered-To: apmail-incubator-crunch-dev@incubator.apache.org Received: (qmail 92872 invoked by uid 99); 26 Mar 2014 02:28:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2014 02:28:14 +0000 Date: Wed, 26 Mar 2014 02:28:14 +0000 (UTC) From: "Micah Whitacre (JIRA)" To: crunch-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CRUNCH-367) Define hadoop-1 properties outside of profile MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CRUNCH-367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Micah Whitacre updated CRUNCH-367: ---------------------------------- Attachment: CRUNCH-368-0.8.patch Patch for the 0.8 code stream. > Define hadoop-1 properties outside of profile > --------------------------------------------- > > Key: CRUNCH-367 > URL: https://issues.apache.org/jira/browse/CRUNCH-367 > Project: Crunch > Issue Type: Improvement > Components: Core > Reporter: Sean Griffin > Assignee: Micah Whitacre > Priority: Minor > Attachments: CRUNCH-368-0.8.patch, crunch-367.patch > > > There's nothing wrong with the way the crunch-parent POM is written, but it's not compatible with Gradle because Gradle does not yet support parsing Maven profiles, and the hadoop-1 profile (the one used during transitive dependency resolution by consumers of crunch) defines the necessary versions for hadoop and hbase. > While admittedly a bug in Gradle, I think the crunch-parent POM can be modified to work around this problem with little effort. Instead of defining the hadoop.version, hbase.version, and hbase.midfix properties in the hadoop-1 profile, just declare them in the main set of properties at the top of the POM and override them in the hadoop-2 profile. I tested this on a local version of Crunch and it correctly resolves the right dependencies when both no profile and the hadoop-2 profile are active. -- This message was sent by Atlassian JIRA (v6.2#6252)