From dev-return-19821-archive-asf-public=cust-asf.ponee.io@ranger.apache.org Fri Oct 26 02:14:03 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0914E180670 for ; Fri, 26 Oct 2018 02:14:02 +0200 (CEST) Received: (qmail 28029 invoked by uid 500); 26 Oct 2018 00:14:02 -0000 Mailing-List: contact dev-help@ranger.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ranger.apache.org Delivered-To: mailing list dev@ranger.apache.org Received: (qmail 28017 invoked by uid 99); 26 Oct 2018 00:14:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Oct 2018 00:14:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B13FBC5F8C for ; Fri, 26 Oct 2018 00:14:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id PFVqYQo38Imo for ; Fri, 26 Oct 2018 00:14:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E39585F5A7 for ; Fri, 26 Oct 2018 00:14:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 78E0EE13DA for ; Fri, 26 Oct 2018 00:14:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1D5E626693 for ; Fri, 26 Oct 2018 00:14:00 +0000 (UTC) Date: Fri, 26 Oct 2018 00:14:00 +0000 (UTC) From: "Sailaja Polavarapu (JIRA)" To: dev@ranger.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (RANGER-2265) To make the profile "all" to be active by default when ranger build MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/RANGER-2265?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Sailaja Polavarapu updated RANGER-2265: --------------------------------------- Attachment: 0001-RANGER-2265-Added-all-the-modules-for-linux-profile-.p= atch > To make the profile "all" to be active by default when ranger build=20 > -------------------------------------------------------------------- > > Key: RANGER-2265 > URL: https://issues.apache.org/jira/browse/RANGER-2265 > Project: Ranger > Issue Type: Improvement > Components: Ranger > Affects Versions: master > Reporter: Qiang Zhang > Assignee: Qiang Zhang > Priority: Major > Labels: build > Attachments: 0001-RANGER-2265-Added-all-the-modules-for-linux-pro= file-.patch, 0001-RANGER-2265-To-make-the-profile-all-to-be-active-by-.patc= h > > > After merge https://issues.apache.org/jira/browse/RANGER-2243 patch, we n= eed to pass -Pall to the build.=20 > Refer command: > mvn -DskipTests=3Dtrue clean compile package install assembly:assembly -= Pall > If use the following command would cause failue: > mvn -DskipTests=3Dtrue clean compile package install assembly:assembly > =C2=A0{noformat} > OS name: "linux", version: "2.6.32-431.el6.x86_64", arch: "amd64", famil= y: "unix" > [INFO] Reactor Summary: > [INFO] > [INFO] ranger ............................................. SKIPPED > [INFO] Unix Native Authenticator .......................... SKIPPED > [INFO] -----------------------------------------------------------------= ------- > [INFO] BUILD FAILURE > [ERROR] Could not find goal 'assembly' in plugin org.apache.maven.plugin= s:maven-assembly-plugin:3.0.0 among available goals help, single -> [Help 1= ] > {noformat} > Use the following command to find default profile, > we can see the profile "linux" is active: > {noformat} > mvn help:active-profiles -N > Active Profiles for Project 'org.apache.ranger:ranger:pom:2.0.0-SNAPSHOT= ': > The following profiles are active: > - env-settings (source: external) > - env-unix (source: external) > - linux (source: org.apache.ranger:ranger:2.0.0-SNAPSHOT) > {noformat} > Which we expect the default profile "all" to be active. > Refer to the Maven issue: > Profile not active even though it has activeByDefault set to true > https://issues.apache.org/jira/browse/MNG-4917 > {noformat} > And from Introduction to Build Profiles: > This profile will automatically be active for all builds unless another = profile in the same pom is activated using one of the previously described = methods. All profiles that are active by default are automatically deactiva= ted when a profile in the pom is activated on the command line or through i= ts activation config. > {noformat} > *In short, the profile "linux" disables "all" when ranger build without = specifying the profile id.* > To make the profile "all" to be active by default, > we should remove the property "activation" of profile "linux". > In fact, the property "activation" of profile "linux" make no sense, > just prompt us to compile under linux os, > and it should not be activated automatically instead of "all". > It should be activated by specifying the profile id: > mvn -DskipTests=3Dtrue clean compile package install assembly:assembly -= Plinux -- This message was sent by Atlassian JIRA (v7.6.3#76005)