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 F0FFE200B55 for ; Sun, 17 Jul 2016 03:47:37 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E1B78160A7C; Sun, 17 Jul 2016 01:47:37 +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 DCCBF160A6C for ; Sun, 17 Jul 2016 03:47:36 +0200 (CEST) Received: (qmail 90518 invoked by uid 500); 17 Jul 2016 01:47:35 -0000 Mailing-List: contact dev-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ofbiz.apache.org Delivered-To: mailing list dev@ofbiz.apache.org Received: (qmail 90506 invoked by uid 99); 17 Jul 2016 01:47:35 -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; Sun, 17 Jul 2016 01:47:35 +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 07881C6781 for ; Sun, 17 Jul 2016 01:47:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.429 X-Spam-Level: ** X-Spam-Status: No, score=2.429 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, KAM_LOTSOFHASH=0.25, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-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 GZ19qLw8XPwJ for ; Sun, 17 Jul 2016 01:47:32 +0000 (UTC) Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 38C685FB3D for ; Sun, 17 Jul 2016 01:47:31 +0000 (UTC) Received: by mail-wm0-f49.google.com with SMTP id o80so74474875wme.1 for ; Sat, 16 Jul 2016 18:47:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=fSi4HrquWeZFM93tPXFk1tmuMXVQDAhKPw3FpqtwXu4=; b=FziJ0y3Fi07fee0yhFuA/zaiHCiWhMMKUxCSwP/yPYI4lvk1UDjk/QVQ/YynMaJHWY 6m9kM7TGuOsUTbNzjjfQKdGObzotHEHUXABPL8D5WbhXQZYfWv+7Vuw+0Q5uTctMc7/Z kl0n5q9KR+kHbzbZ0sfE5ln0cjvbnB6uuS5mzSjcN76zXMVGqoifM9Zw4uzDSH9lUE7l XW2OOXcu46QcOptztL+fQqdHaSm9wVRGW9lS1+2yn2uOGT6fsnyNaJrAMr+DJwi9U+TN nKpliMr6OsXFq+cN5rgvJbb2cDtKpSr0oaj25ejupjsm73gEFVg9xExCPmVkIsAYvbay pmmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=fSi4HrquWeZFM93tPXFk1tmuMXVQDAhKPw3FpqtwXu4=; b=Dr6bb+x576CsTrrbW/mLZDXyGeiQV+Kqog1+uFtRbQ0fKhissLhYxv4s8pBj3D2tn7 +jLFQwzP3WLeXT09n6+PQqnk07t2YixQfzJ7/30xIp7tHb64uC3L2jUXDTmQzpps2494 FjqN6ieyU6IHNKEe6ImGss3njFRhs5ovlQ1+wP+//Ld8s6WrkBIDHYrVL8YgSq2T5GPC GIFXJ5Yh97CUi5YdDkfiH4AjOWgGBUfZWWlwf52hf0rTL3e+tjSy6LQB1PYawJRdSAdg 4gp+Z7LeplzjOey47w8x7fej1Ghf9LoKAT+GfkJGZotQJIe1Lm+mVJthqWju68RTsLr+ csPA== X-Gm-Message-State: ALyK8tL8HAI9KbL/5oON2vFxxj2Fmkc5pweEnjGD/9mbqSdIy2CC/UU0tIs27j+WrF8EG6rVzrFfbBIGeezx6Q== X-Received: by 10.28.141.4 with SMTP id p4mr48600073wmd.46.1468720043638; Sat, 16 Jul 2016 18:47:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.239.197 with HTTP; Sat, 16 Jul 2016 18:47:22 -0700 (PDT) In-Reply-To: References: From: Pierre Smits Date: Sun, 17 Jul 2016 03:47:22 +0200 Message-ID: Subject: Re: OFBiz & Gradle building OFBiz To: "dev@ofbiz.apache.org" Content-Type: multipart/alternative; boundary=001a11468de679c5a40537cb0806 archived-at: Sun, 17 Jul 2016 01:47:38 -0000 --001a11468de679c5a40537cb0806 Content-Type: text/plain; charset=UTF-8 Hi Taher, Bringing the dev environment up to the latest revision did the trick. Thanks! Even Pierre Smits ORRTIZ.COM OFBiz based solutions & services OFBiz Extensions Marketplace http://oem.ofbizci.net/oci-2/ On Sat, Jul 16, 2016 at 9:10 PM, Taher Alkhateeb wrote: > Hi Pierre, > > Maybe try it without the word apache because you're on an older revision? > > On Jul 16, 2016 9:10 PM, "Pierre Smits" wrote: > > > Hi Taher, > > > > You said: 'You can run the system by typing java -cp > build/libs/jarname.jar > > org.apache.ofbiz.base.start.Start or running the jar directly. > > > > I tried: > > > > java -cp build/libs/ofbiz-gradle.jar org.apache.ofbiz.base.start.Start > > > > I guess that 'ofbiz-gradle.jar' is the 'jarname.jar' you mentioned. > > > > But that resulted in: > > > > Error: Could not find or load main class > org.apache.ofbiz.base.start.Start > > > > > > Best regards, > > > > > > Pierre Smits > > > > ORRTIZ.COM > > OFBiz based solutions & services > > > > OFBiz Extensions Marketplace > > http://oem.ofbizci.net/oci-2/ > > > > On Sat, Jul 16, 2016 at 7:06 PM, Pierre Smits > > wrote: > > > > > Thanks. > > > > > > In a wadload of postgresql jars found I got: > > > > > > > > > > > > ./Users/pierre/.gradle/caches/modules-2/files-2.1/postgresql/postgresql/9.0-801.jdbc4/153f2f92a786f12fc111d0111f709012df87c808/postgresql-9.0-801.jdbc4.jar > > > > > > So that adds to the traceability issue I have. A pom in one folder and > a > > > jar in another, no apparent relation and no logging. More digging to > do. > > :( > > > > > > Best regards, > > > > > > Pierre Smits > > > > > > ORRTIZ.COM > > > OFBiz based solutions & services > > > > > > OFBiz Extensions Marketplace > > > http://oem.ofbizci.net/oci-2/ > > > > > > On Sat, Jul 16, 2016 at 6:54 PM, Taher Alkhateeb < > > > slidingfilaments@gmail.com> wrote: > > > > > >> find . -iname "*postgres*.jar" > > >> > > >> On Jul 16, 2016 7:50 PM, "Pierre Smits" > wrote: > > >> > > >> > Hmm. > > >> > > > >> > It seems I overlooked that it was a directory. > > >> > > > >> > This is what I have in the directory: > > >> > > > >> > Pierres-MacBook-Pro:files-2.1 pierre$ ls > > >> > > > >> > > > >> > > > ./caches/modules-2/files-2/postgresql/postgresql/9.0-801.jdbc4/58952dea25c6251a7666d8eea01e4a31da0f8cf7 > > >> > > > >> > postgresql-9.0-801.jdbc4.pom > > >> > > > >> > And the pom file contains: > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > 4.0.0 > > >> > > > >> > postgresql > > >> > > > >> > postgresql > > >> > > > >> > jar > > >> > > > >> > PostgreSQL JDBC Driver > > >> > > > >> > 9.0-801.jdbc4 > > >> > > > >> > http://jdbc.postgresql.org > > >> > > > >> > The PostgreSQL Driver JDBC4 > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > BSD License > > >> > > > >> > http://jdbc.postgresql.org/license.html > > >> > > > >> > repo > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > >> > I am yet to find the actual jar on my Mac. > > >> > > > >> > > > >> > Best regards, > > >> > > > >> > Pierre Smits > > >> > > > >> > ORRTIZ.COM > > >> > OFBiz based solutions & services > > >> > > > >> > OFBiz Extensions Marketplace > > >> > http://oem.ofbizci.net/oci-2/ > > >> > > > >> > On Sat, Jul 16, 2016 at 6:42 PM, Taher Alkhateeb < > > >> > slidingfilaments@gmail.com > > >> > > wrote: > > >> > > > >> > > Hi Pierre, > > >> > > > > >> > > The jar name is there, what is hashed is the directory name. For > > >> example > > >> > > the postgresql jar on my computer is > > >> > > > > >> > > > > >> > > > >> > > > ./caches/modules-2/files-2.1/postgresql/postgresql/9.0-801.jdbc4/153f2f92a786f12fc111d0111f709012df87c808/postgresql-9.0-801.jdbc4.jar > > >> > > > > >> > > > > >> > > Regards, > > >> > > > > >> > > Taher Alkhateeb > > >> > > > > >> > > On Sat, Jul 16, 2016 at 7:38 PM, Pierre Smits < > > pierre.smits@gmail.com > > >> > > > >> > > wrote: > > >> > > > > >> > > > Taher, > > >> > > > > > >> > > > Have a look at: > > >> > > > > > >> > > > > > >> > > > > >> > > > >> > > > https://issues.apache.org/jira/browse/OFBIZ-7783?focusedCommentId=15380747&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15380747 > > >> > > > > > >> > > > It appears that the build proces doesn't only copy the jars, but > > >> also > > >> > > > transforms them. The files stored aren't recognisable. Not by > > their > > >> > type > > >> > > > nor by name. > > >> > > > > > >> > > > Best regards, > > >> > > > > > >> > > > Pierre Smits > > >> > > > > > >> > > > ORRTIZ.COM > > >> > > > OFBiz based solutions & services > > >> > > > > > >> > > > OFBiz Extensions Marketplace > > >> > > > http://oem.ofbizci.net/oci-2/ > > >> > > > > > >> > > > On Sat, Jul 16, 2016 at 6:26 PM, Pierre Smits < > > >> pierre.smits@gmail.com> > > >> > > > wrote: > > >> > > > > > >> > > > > Hi Taher, > > >> > > > > > > >> > > > > Jacques already implemented a change to the rc scripts in the > > >> tools > > >> > > > > folder, but that works through the gradle build proces. And > > >> building > > >> > is > > >> > > > > something that isn't allowed on production servers. In order > to > > >> meet > > >> > > SLAs > > >> > > > > they are optimized to maximum uptime and maximum performance. > > >> > > > > > > >> > > > > Best regards, > > >> > > > > > > >> > > > > Pierre Smits > > >> > > > > > > >> > > > > ORRTIZ.COM > > >> > > > > OFBiz based solutions & services > > >> > > > > > > >> > > > > OFBiz Extensions Marketplace > > >> > > > > http://oem.ofbizci.net/oci-2/ > > >> > > > > > > >> > > > > On Sat, Jul 16, 2016 at 6:21 PM, Pierre Smits < > > >> > pierre.smits@gmail.com> > > >> > > > > wrote: > > >> > > > > > > >> > > > >> Taher, > > >> > > > >> > > >> > > > >> Deployment is very controlled process/procedure bound by > > >> > constraints, > > >> > > so > > >> > > > >> the deployment process must bring all required elements > > together > > >> in > > >> > to > > >> > > > >> something that can be deployed. In OFBiz terminology the > > >> convenience > > >> > > > >> package or binary release. > > >> > > > >> > > >> > > > >> In this deployment process this also means that everything > not > > >> > needed > > >> > > in > > >> > > > >> the production environment must be removed: > > >> > > > >> > > >> > > > >> - java source code > > >> > > > >> - build definition files > > >> > > > >> - the OFBiz data sets > > >> > > > >> - etc > > >> > > > >> > > >> > > > >> Best regards, > > >> > > > >> > > >> > > > >> Pierre Smits > > >> > > > >> > > >> > > > >> ORRTIZ.COM > > >> > > > >> OFBiz based solutions & services > > >> > > > >> > > >> > > > >> OFBiz Extensions Marketplace > > >> > > > >> http://oem.ofbizci.net/oci-2/ > > >> > > > >> > > >> > > > >> On Sat, Jul 16, 2016 at 6:13 PM, Pierre Smits < > > >> > pierre.smits@gmail.com > > >> > > > > > >> > > > >> wrote: > > >> > > > >> > > >> > > > >>> Hence why I created: > > >> > > > >>> > > >> > > > >>> > > >> > > > >>> - OFBIZ-7796 Running OFBiz as a service fails > > >> > > > >>> - OFBIZ-7783 External libraries are not in the OFBiz > folder > > >> > > > structure > > >> > > > >>> - OFBIZ-7782 Duplicates of .properies and Label files > > appear > > >> > > > >>> > > >> > > > >>> Best regards, > > >> > > > >>> > > >> > > > >>> Pierre Smits > > >> > > > >>> > > >> > > > >>> ORRTIZ.COM > > >> > > > >>> OFBiz based solutions & services > > >> > > > >>> > > >> > > > >>> OFBiz Extensions Marketplace > > >> > > > >>> http://oem.ofbizci.net/oci-2/ > > >> > > > >>> > > >> > > > >>> On Sat, Jul 16, 2016 at 5:57 PM, Pierre Smits < > > >> > > pierre.smits@gmail.com> > > >> > > > >>> wrote: > > >> > > > >>> > > >> > > > >>>> I thought that Gradle was not unlike the other java based > > build > > >> > > tools > > >> > > > >>>> like Ant and Maven, and that it could generate a jar too. > > >> > > > >>>> > > >> > > > >>>> Ohh. I forgot to mention some other requirements: > > >> > > > >>>> > > >> > > > >>>> - The 3rd party libraries must reside within the > > application > > >> > > > >>>> - Auditors must be able to track the origin of 3rd party > > >> > > libraries > > >> > > > >>>> residing in applications > > >> > > > >>>> > > >> > > > >>>> Best regards, > > >> > > > >>>> > > >> > > > >>>> > > >> > > > >>>> Pierre Smits > > >> > > > >>>> > > >> > > > >>>> ORRTIZ.COM > > >> > > > >>>> OFBiz based solutions & services > > >> > > > >>>> > > >> > > > >>>> OFBiz Extensions Marketplace > > >> > > > >>>> http://oem.ofbizci.net/oci-2/ > > >> > > > >>>> > > >> > > > >>>> On Sat, Jul 16, 2016 at 5:51 PM, Pierre Smits < > > >> > > pierre.smits@gmail.com > > >> > > > > > > >> > > > >>>> wrote: > > >> > > > >>>> > > >> > > > >>>>> Hi Taher, > > >> > > > >>>>> > > >> > > > >>>>> Thanks for your quick response. > > >> > > > >>>>> > > >> > > > >>>>> The reason why this is needed is because I am limited in > my > > >> > options > > >> > > > in > > >> > > > >>>>> hardened servers in production environments, as a result > of > > >> GRC > > >> > > > policies > > >> > > > >>>>> and procedures. > > >> > > > >>>>> This entails (amongst others): > > >> > > > >>>>> > > >> > > > >>>>> - no ports open than those that are required to access > > the > > >> > > server > > >> > > > >>>>> environment (ssh) or the application (in the case of > > OFBiz: > > >> > the > > >> > > > designated > > >> > > > >>>>> ajp port. > > >> > > > >>>>> - no manual starting of stopping of services other than > > >> > through > > >> > > > >>>>> services (rc scripts) and chron jobs > > >> > > > >>>>> - no downloading of software etc from within the server > > >> > > > >>>>> - no build processes allowed on application servers > when > > >> the > > >> > > > >>>>> reside in the production environment. > > >> > > > >>>>> > > >> > > > >>>>> I trust that answers your question. > > >> > > > >>>>> > > >> > > > >>>>> Best regards, > > >> > > > >>>>> > > >> > > > >>>>> Pierre Smits > > >> > > > >>>>> > > >> > > > >>>>> ORRTIZ.COM > > >> > > > >>>>> OFBiz based solutions & services > > >> > > > >>>>> > > >> > > > >>>>> OFBiz Extensions Marketplace > > >> > > > >>>>> http://oem.ofbizci.net/oci-2/ > > >> > > > >>>>> > > >> > > > >>>>> On Sat, Jul 16, 2016 at 5:33 PM, Taher Alkhateeb < > > >> > > > >>>>> slidingfilaments@gmail.com> wrote: > > >> > > > >>>>> > > >> > > > >>>>>> Hi Pierre, > > >> > > > >>>>>> > > >> > > > >>>>>> Can I ask what do you want the jar for maybe I can > provide > > an > > >> > > > >>>>>> alternative > > >> > > > >>>>>> answer? > > >> > > > >>>>>> > > >> > > > >>>>>> Taher Alkhateeb > > >> > > > >>>>>> > > >> > > > >>>>>> On Jul 16, 2016 6:31 PM, "Pierre Smits" < > > >> pierre.smits@gmail.com > > >> > > > > >> > > > >>>>>> wrote: > > >> > > > >>>>>> > > >> > > > >>>>>> > Hi all, > > >> > > > >>>>>> > > > >> > > > >>>>>> > I am still working my way through how our gradle > > >> > implementation > > >> > > > >>>>>> works and > > >> > > > >>>>>> > how I can apply it in a CI/CD environment. And I still > > have > > >> > some > > >> > > > >>>>>> questions. > > >> > > > >>>>>> > So I hope someone will help me a bit. > > >> > > > >>>>>> > > > >> > > > >>>>>> > How do I use the Gradle build process to generate the > > ofbiz > > >> > > > >>>>>> executable (the > > >> > > > >>>>>> > jar file)? > > >> > > > >>>>>> > > > >> > > > >>>>>> > > > >> > > > >>>>>> > Best regards, > > >> > > > >>>>>> > > > >> > > > >>>>>> > Pierre Smits > > >> > > > >>>>>> > > > >> > > > >>>>>> > ORRTIZ.COM > > >> > > > >>>>>> > OFBiz based solutions & services > > >> > > > >>>>>> > > > >> > > > >>>>>> > OFBiz Extensions Marketplace > > >> > > > >>>>>> > http://oem.ofbizci.net/oci-2/ > > >> > > > >>>>>> > > > >> > > > >>>>>> > > >> > > > >>>>> > > >> > > > >>>>> > > >> > > > >>>> > > >> > > > >>> > > >> > > > >> > > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > > > > > > > > --001a11468de679c5a40537cb0806--