From dev-return-2879-archive-asf-public=cust-asf.ponee.io@mxnet.incubator.apache.org Fri May 18 01:01:43 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 CF834180634 for ; Fri, 18 May 2018 01:01:42 +0200 (CEST) Received: (qmail 72998 invoked by uid 500); 17 May 2018 23:01:41 -0000 Mailing-List: contact dev-help@mxnet.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mxnet.incubator.apache.org Delivered-To: mailing list dev@mxnet.incubator.apache.org Received: (qmail 72980 invoked by uid 99); 17 May 2018 23:01:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2018 23:01:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id AF664C0033 for ; Thu, 17 May 2018 23:01:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.899 X-Spam-Level: * X-Spam-Status: No, score=1.899 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id kepSY-Jp1SIC for ; Thu, 17 May 2018 23:01:38 +0000 (UTC) Received: from mail-oi0-f52.google.com (mail-oi0-f52.google.com [209.85.218.52]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 53C225F16F for ; Thu, 17 May 2018 23:01:38 +0000 (UTC) Received: by mail-oi0-f52.google.com with SMTP id b130-v6so5506540oif.12 for ; Thu, 17 May 2018 16:01:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=1GD5uvtZv5ucoqPmVsJ0vj5qKtaZ5GyB1erKCZqC/Qg=; b=e9U861+kv2EDn1pWidyrNlY9DMfj5QAsm1PCF38rS8LNHuw8wq3e+lWFL7DdIltMkU afHb/S/yb6kkrSCZqDvUfLW68E0VTZtQrpkKUjQxt2Pzwwu1lwuTgFOxSlD7QPBAjcyp 8cY3l035obsBHl19pPdVyx2iJuf1YE6qyUePQqeCmgULVeAOzgJl2MXLanNuH/KzMAYb TrLtTubZ8U6xT9tl7e8SRsR8Je901yOy4KwwlErFsrGVGvnaa3HMCMIGEP+yjOAn60RF usD/biPygKFbyWH/3wWUcCtICzVsDldgR6c6IaJ3yx7NmgkCE8NLCNkTOqoCy9sCTmhf Wn7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=1GD5uvtZv5ucoqPmVsJ0vj5qKtaZ5GyB1erKCZqC/Qg=; b=neUpBAf4aJ7b5Lsb/k5f6gUuNctwjn3XPC2a+4XkAGj41/P8cUMAMSDAoStO3t7ROE qQHZmAlzIx7FhxNZUfz7guaUuF/Rq73FWy8R89B9ebQNPqShgRwyTG8N7UP8biaWRkch wuvHUF1GvH+xFe/y3P6Vbgu2/Vxd6ip4q/WWhPARuh3KSM4E7XhINGtrygsZ0xCa2PtQ wBt9LGORSJeR2/Yd6YUmHYu7/CUFwY6c2SSdV88Lw7Nf2xlv1GYMWmT6cOH6S54JyXpU rTVAVwrLg++SM92XfBSUd2FfmkLYSpTAXfFwfKFngwrUZ46ph82P612jg8NBVZlpB147 0qcg== X-Gm-Message-State: ALKqPwe9uLxFsvnqh/lE3Kl0CEMEMoYyCqKIN8SyOZop2945FRfHLS/8 tTnN2ZSTkpVxip+x4PXr8FZiS15zhFtD4peDywM= X-Google-Smtp-Source: AB8JxZrBUYa8BkqSqeWEkAWqqVoKPAzSr0wWvJ3In/YoPjfCq4vOoiM2TJLLvUtTj34tk4LxIomvHeFV45sr0/lQgX8= X-Received: by 2002:aca:4850:: with SMTP id v77-v6mr4079653oia.354.1526598090871; Thu, 17 May 2018 16:01:30 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:aca:120c:0:0:0:0:0 with HTTP; Thu, 17 May 2018 16:00:50 -0700 (PDT) In-Reply-To: References: From: Naveen Swamy Date: Thu, 17 May 2018 16:00:50 -0700 Message-ID: Subject: Fwd: [maven-release-plugin] Passing additional parameters To: dev@mxnet.incubator.apache.org Content-Type: multipart/alternative; boundary="000000000000ebdc28056c6ed098" --000000000000ebdc28056c6ed098 Content-Type: text/plain; charset="UTF-8" I posted this to the maven email list, if someone here already know the answer, please let me know. I am trying to pass arguments(cflags, etc.,) to maven-native during release:prepare ---------- Forwarded message ---------- From: Naveen Swamy Date: Thu, May 17, 2018 at 2:20 PM Subject: [maven-release-plugin] Passing additional parameters To: users@maven.apache.org, dev@maven.apache.org Hello there, I have a question regarding maven release plugin. We use codehaus native-plugin to build jni, I want to pass the cflags during release phase. However I see that I am unable to pass any of the arguments through release plugin. Any experience or pointers would help this is mvn command which we call through a makefile similar to https://github.com/apache/incubator-mxnet/blob/ 48d60908a1fa42364a829ac90133d28dd0998219/Makefile#L579 ``` scalareleasedryrun: (cd $(ROOTDIR)/scala-package; \ mvn -X release:prepare -DdryRun=true -DautoVersionSubmodules=true \ -P$(SCALA_PKG_PROFILE),$(SCALA_VERSION_PROFILE) \ -Darguments=-DskipTests -Dcxx="$(CXX)" \ -Drelease.cflags="$(CFLAGS)" -Dldflags="$(LDFLAGS)" \ -Dlddeps="$(LIB_DEP) $(ROOTDIR)/lib/libmxnet.a") ``` The parent pom file is here https://github.com/apache/incubator-mxnet/blob/master/scala-package/pom.xml and the pom file to compile native code is here https://github.com/apache/ incubator-mxnet/blob/master/scala-package/init-native/osx-x86_64/pom.xml#L59 I see that cflags variable used in the native pom.xml is coming as null ``` [INFO] [INFO] --- native-maven-plugin:1.0-alpha-9:compile (default-compile) @ libmxnet-init-scala-osx-x86_64 --- [INFO] [DEBUG] Configuring mojo org.codehaus.mojo:native- maven-plugin:1.0-alpha-9:compile from plugin realm ClassRealm[extension>org. codehaus.mojo:native-maven-plugin:1.0-alpha-9, parent: sun.misc.Launcher$ AppClassLoader@42a57993] [INFO] [DEBUG] Configuring mojo 'org.codehaus.mojo:native- maven-plugin:1.0-alpha-9:compile' with basic configurator --> [INFO] [DEBUG] (f) compilerEndOptions = [-I../../../include, null] [INFO] [DEBUG] (f) compilerOutputDirectory = /Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/ scala-package/init-native/osx-x86_64/target/objs [INFO] [DEBUG] (f) compilerProvider = generic-classic [INFO] [DEBUG] (f) compilerStartOptions = [-std=c++0x] [INFO] [DEBUG] (f) dependencyIncludeDirectory = /Users/wamy/nswamy/deepengine/workspace/incubator-mxnet/ scala-package/init-native/osx-x86_64/target/native/include [INFO] [DEBUG] (f) javahOS = darwin [INFO] [DEBUG] (f) jdkIncludePath = /Library/Java/ JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre/../include [INFO] [DEBUG] (f) numberOfConcurrentCompilation = 1 [INFO] [DEBUG] (f) project = MavenProject: org.apache.mxnet:libmxnet- init-scala-osx-x86_64:1.2.0-SNAPSHOT @ /Users/wamy/nswamy/deepengine/ workspace/incubator-mxnet/scala-package/init-native/osx-x86_64/pom.xml [INFO] [DEBUG] (s) directory = /Users/wamy/nswamy/deepengine/ workspace/incubator-mxnet/scala-package/init-native/src/main/native [INFO] [DEBUG] (s) fileNames = [org_apache_mxnet_init_native_c_api.cc] [INFO] [DEBUG] (f) sources = [org.codehaus.mojo.natives. NativeSources@1e01b195] [INFO] [DEBUG] (f) workingDirectory = /Users/wamy/nswamy/deepengine/ workspace/incubator-mxnet/scala-package/init-native/osx-x86_64 ``` I have already tried pass with -Darguments, create properties corresponding to the flags, etc., Appreciate pointers and advise? -Naveen --000000000000ebdc28056c6ed098--