Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jtbej-0003lx-RO for pljava-dev@arkaria.postgresql.org; Thu, 09 Jul 2020 18:52:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jtbei-0007QB-9t for pljava-dev@arkaria.postgresql.org; Thu, 09 Jul 2020 18:52:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jtbei-0007Nx-2C for pljava-dev@lists.postgresql.org; Thu, 09 Jul 2020 18:52:24 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jtbef-0006K9-T4 for pljava-dev@lists.postgresql.org; Thu, 09 Jul 2020 18:52:23 +0000 Received: by mail-ed1-x530.google.com with SMTP id h28so2685058edz.0 for ; Thu, 09 Jul 2020 11:52:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9IWCESStXWOt+3J1p5daNJCKcRRpaM5akrtbWnpp4cw=; b=iOR4pk0cXV/9M3PAh9YxmUcgK1kbFsiC38NM0JpcC95SWT1aYVvcXipdokI8J5186o w5qWMtY+f+Uzmfh59D+Y/qugTDW82IlvqajeuWQlzFTxLZQYKN7/I5gCUul7g4pxjftz g1LPv4+WhzjMda4qWFWkEF+ch7IYb1Ly7cZd4Z3kdZxOtxpqqgk58Us9R5rvYHuS+s9i jTIPSdIgUW2Pp2937T/ot2jRXz15BIQVlWBgHDYnNybvRv0ihgeCPadvhAyaXCKX5xYe 6x5CrXPzduG1lB2H68d5J0Spv3Fyxyl1DYig38JANvmwxDIUyg6lAaXeukPCD0d7NZD9 gVsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9IWCESStXWOt+3J1p5daNJCKcRRpaM5akrtbWnpp4cw=; b=qEh5DFOQmkq/+GjWjYdxvtF71sPSNYkDPv/LEBR4h8u4yWC9eHAAEn5tPYW5GXg13N oSSxZgd7AMrMMz3vg04Cj9ZQLo0/XsaYgKNk+YJbTfyzgHgXZP/q3TSmZdF+vcQ8cH/u rOl6q0StHIZ08wB0TeW5pXZFH5t831PdGbfoZ+QPCe49trE9WRyIEBkBchCO2DOq/u4O pcfVhn/ftsa2/dfMxZMuy3Yx2Ebl3wm5ImdGPe+g5aWBVywo+wo6p7JN3C97n6o0lBK9 qiIe8c9uXslQ590Sp9PiX2tkjDW5iIiFPuR1xinCbo5igcazYKYmtBddwEXUpoaDb2/x ktMg== X-Gm-Message-State: AOAM530bqzce8JzpNIWmOIlai7VZJy5Jm8ZGjuMbNyIayb9zdoH60BEU 0a5P8WGCXtzOOCMO3wZUz5tECGalryF6vfA8wN4ADcwc X-Google-Smtp-Source: ABdhPJzporMgHIxxQRYRbKWc3U3TWMgjtIIynFnF8/St59R3+a1fQTg2pNF3n+/bMDL7PjHf8FT9PA2JrV5USd+bniM= X-Received: by 2002:a50:e791:: with SMTP id b17mr77379273edn.366.1594320739630; Thu, 09 Jul 2020 11:52:19 -0700 (PDT) MIME-Version: 1.0 References: <5F02122C.7040905@anastigmatix.net> <5F021785.905@anastigmatix.net> <5F021A20.1050903@anastigmatix.net> <5F02340C.7030002@anastigmatix.net> <5F04FA65.5000600@anastigmatix.net> <5F071CFC.9090306@anastigmatix.net> <5F072647.50301@anastigmatix.net> <5F0734AD.7060001@anastigmatix.net> In-Reply-To: From: Kartik Ohri Date: Fri, 10 Jul 2020 00:22:08 +0530 Message-ID: Subject: Re: PL/Java new build plugin To: Chapman Flack Cc: pljava-dev@lists.postgresql.org Content-Type: multipart/alternative; boundary="00000000000058023f05aa06b965" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --00000000000058023f05aa06b965 Content-Type: text/plain; charset="UTF-8" > > Meanwhile, I tried to eliminate the properties file and encountered the > include path not found issue in nar-maven plugin. It took some time to find > the issue but I was able to find the issue. It was that the pg_config > appended a newline character to its output which was being added to the > property value causing a path error. I have fixed it now and eliminated the > need of the pgxs.properties file. > While debugging this issue, I took a look at properties-maven-plugin and found that it writes the properties to the project instead of session. So, I am writing the properties to project as well instead of the session. Also, I read about the difference between getUserProperties provided by the session and the getProperties provided by the session. I grasped that getUserProperties is used for the properties the user passes to the maven command using -D. It is possible to obtain project properties using a session but directly using a project is more straightforward. The current implementation using project properties compiles and works for me. --00000000000058023f05aa06b965 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Meanwhile, I tried to eliminate th= e properties=C2=A0file and encountered the include path not found issue in = nar-maven plugin. It took some time to find the issue but I was able to fin= d the issue. It was that the pg_config appended a newline character to its = output which was being added to the property value causing a path error. I = have fixed it now and eliminated the need of the pgxs.properties file.
=C2=A0
While debugging this issue, I too= k a look at properties-maven-plugin and found that it writes the properties= to the project instead of session. So, I am writing the properties to proj= ect as well instead of the session. Also, I read about the difference betwe= en getUserProperties provided by the session and the getProperties provided= by the session. I grasped that getUserProperties is used for the propertie= s the user passes to the maven command using -D. It is=C2=A0possible=C2=A0t= o obtain project properties using a session but directly using a project is= more straightforward. The current implementation using project properties = compiles and works for me.
--00000000000058023f05aa06b965--