Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 42993200B98 for ; Mon, 3 Oct 2016 18:16:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 413EB160ADC; Mon, 3 Oct 2016 16:16:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7EEEA160ACD for ; Mon, 3 Oct 2016 18:16:21 +0200 (CEST) Received: (qmail 19228 invoked by uid 500); 3 Oct 2016 16:16:20 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 19217 invoked by uid 99); 3 Oct 2016 16:16:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2016 16:16:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6F1952C0B05 for ; Mon, 3 Oct 2016 16:16:20 +0000 (UTC) Date: Mon, 3 Oct 2016 16:16:20 +0000 (UTC) From: "Sean Busbey (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-16370) Exclude jdk tools.jar from Bytecode Version enforcer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 03 Oct 2016 16:16:22 -0000 [ https://issues.apache.org/jira/browse/HBASE-16370?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sean Busbey updated HBASE-16370: -------------------------------- Fix Version/s: (was: 1.2.4) 1.2.5 > Exclude jdk tools.jar from Bytecode Version enforcer > ---------------------------------------------------- > > Key: HBASE-16370 > URL: https://issues.apache.org/jira/browse/HBASE-16370 > Project: HBase > Issue Type: Improvement > Affects Versions: 1.2.2 > Reporter: Jerry He > Assignee: Jerry He > Priority: Minor > Fix For: 2.0.0, 1.3.0, 1.4.0, 1.2.5 > > Attachments: HBASE-16370.patch > > > Getting this message trying to do a build with -Prelease: > {noformat} > [INFO] Restricted to JDK 1.7 yet jdk.tools:jdk.tools:jar:1.8:system contains org/relaxng/datatype/DatatypeLibrary.class targeted to JDK 1.8 > [WARNING] Rule 3: org.apache.maven.plugins.enforcer.EnforceBytecodeVersion failed with message: > HBase has unsupported dependencies. > HBase requires that all dependencies be compiled with version 1.7 or earlier > of the JDK to properly build from source. You appear to be using a newer dependency. You can use > either "mvn -version" or "mvn enforcer:display-info" to verify what version is active. > Non-release builds can temporarily build with a newer JDK version by setting the > 'compileSource' property (eg. mvn -DcompileSource=1.8 clean package). > Found Banned Dependency: jdk.tools:jdk.tools:jar:1.8 > Use 'mvn dependency:tree' to locate the source of the banned dependencies. > [INFO] ------------------------------------------------------------------------ > {noformat} > My JDK is 1.8. But I wanted to build to target 1.7. So I didn't' have the -DcompileSource=1.8. > The enforcer checks the jdk tools.jar and causes the error because the system JDK is 1.8. > This is a valid build/release use case as long as we support both 1.8 and 1.7. > We should exclude jdk tools.jar from the enforcer. -- This message was sent by Atlassian JIRA (v6.3.4#6332)