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 1k8xis-0003Ne-83 for pljava-dev@arkaria.postgresql.org; Fri, 21 Aug 2020 03:28:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k8xir-0005Go-5o for pljava-dev@arkaria.postgresql.org; Fri, 21 Aug 2020 03:28:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k8xiq-0005Gh-Mu for pljava-dev@lists.postgresql.org; Fri, 21 Aug 2020 03:28:09 +0000 Received: from anastigmatix.net ([68.171.219.55]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k8xin-0005SI-9G for pljava-dev@lists.postgresql.org; Fri, 21 Aug 2020 03:28:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anastigmatix.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=2Nkh13p+F2xxrNEaTLBcZnf9OmuM2MLBHnrWsK1hEPw=; b=bfdvEsOKfCo/MQ/CaYTXqS0Xas 8bVhUpgM78Rf4OxrcdIEXKIrF8grqXmbMEpHB1CdVp4BTcx2nVJRLg4bxvem2WUcfvuARIURKu63u 2O58Mwhoip5YPxyw85VLWHlk8bCLtOAraCdDo9pjlZREixqo1kl56eFsPzuRhb2/hP3vfk8MTlvoF XYn99wopgHToNCn/E2sE8N2idjnt0cEafCo/ouhqXpGBjVPCCjZUYxCNhLY2+GK1t+u22939mUKtL LUvU4iufMRnJSdKne3QDORWR3iy/g3qH32x5Zf4INwpyNUpuJNvOMuER25T9LEZo8XidcKowghJ4u rQWiTZPQ==; Received: from [184.19.31.139] (port=43573) by bay.acenet.us with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1k8xik-00169O-9A; Thu, 20 Aug 2020 23:28:02 -0400 Subject: Re: ScriptingMojo Custom Packaging To: Kartik Ohri References: <5F2EB313.8090706@anastigmatix.net> <5F2EC4F4.3080608@anastigmatix.net> <5F31EFEC.1080609@anastigmatix.net> <5F368380.9070203@anastigmatix.net> <5F368A99.6070709@anastigmatix.net> <5F36965C.60707@anastigmatix.net> <5F3A7DC6.8090905@anastigmatix.net> <5F3D32E9.80504@anastigmatix.net> <5F3D36BE.70703@anastigmatix.net> <5F3D38F8.7050907@anastigmatix.net> <5F3D3A75.5010304@anastigmatix.net> <5F3D3D2E.4070109@anastigmatix.net> Cc: pljava-dev@lists.postgresql.org From: Chapman Flack X-Enigmail-Draft-Status: N1110 Message-ID: <5F3F3F41.3070104@anastigmatix.net> Date: Thu, 20 Aug 2020 23:28:01 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-95.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - lists.postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anastigmatix.net X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: chap@anastigmatix.net X-Authenticated-Sender: bay.acenet.us: chap@anastigmatix.net X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 08/20/20 13:00, Kartik Ohri wrote: > I have made these changes > https://github.com/amCap1712/pljava/commit/14045b10ca1428fc2914440a2220871ac7c9921b > but the build process fails with this error > https://gist.github.com/amCap1712/ad9fe94fd9fb6f4ff4f26913a464c226. I > checked the jar files manually to make sure the file is present in it. The > pgxs jar is also listed in the lists of url classpaths. Hmm ... for me it does not even get that far: [ERROR] Unknown packaging: pgxs @ org.postgresql:pljava-so:[unknown-version], /var/tmp/nohome/pljava/pljava-so/pom.xml, line 14, column 13 It seems to be an issue similar to what we had with the profiles before, referring to a plugin that had not yet been built. Perhaps in your case it got further because the plugin had been built in an earlier step? This might make the custom-packaging idea unworkable without a multi-step build, which I would really rather avoid. Maybe the packaging type for pljava-so should just be changed from nar to whichever of the predefined packaging types will impose the fewest extraneous expectations. Maybe that's pom. It only binds two phases and doesn't assume there is anything to produce besides the pom file, which is already there. We'll produce the .so or .dll or .bundle also, but Maven doesn't need to care. The custom type seemed more satisfying to me, but not if it ties things in knots. Regards, -Chap