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 1jxx98-00079V-UN for pljava-dev@arkaria.postgresql.org; Tue, 21 Jul 2020 18:37:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jxx97-0004HI-PH for pljava-dev@arkaria.postgresql.org; Tue, 21 Jul 2020 18:37:45 +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 1jxx97-0004HB-9N for pljava-dev@lists.postgresql.org; Tue, 21 Jul 2020 18:37:45 +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 1jxx90-00029F-2i for pljava-dev@lists.postgresql.org; Tue, 21 Jul 2020 18:37:44 +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=RqDvg7vT0w7kKI7LS0EeubPcdTkFkgB3y6eCt0I053A=; b=dpSqH0JQEEdfUuSPymHPBg4WKU f0wpzGDe5hAbwtOy1ViCneDH/8hvKzkukVZxW+dhX0VuAYlnAOpRCCaO4tM+w6w/S8QKWDoD+E3FL s+dw6YjvzFXnfsAa5rJ8IPrtXLPNTlw6nSV0cD30JIj36ad3gg0bnndoi0d83E6T8zJPEInxk5Fag 6bPTndtB+wMFGNbFqZtsXsrNOc2qen4hliKNX7qwtfueyRobUCueBs1XSAyKHr7gz3DJEKcITPJzo o5u7hk8MIRmqmRS5qzfg7Dn+tr6bLZBkxCdv0uAF0AOdqxnMU30gubOlJCdRIUZA/zryjx2REum9P m15ZwKAA==; Received: from [184.19.31.139] (port=53653) by bay.acenet.us with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1jxx8w-00AjJC-IV; Tue, 21 Jul 2020 14:37:35 -0400 Subject: Re: PL/Java new build plugin To: Kartik Ohri References: <5F0F2DA2.5090603@anastigmatix.net> <5F12FF49.6090906@anastigmatix.net> <5F12FF80.5020208@anastigmatix.net> <5F1338F8.6030506@anastigmatix.net> <5F135B84.8070302@anastigmatix.net> <5F14C34E.4020704@anastigmatix.net> <5F14E15A.4040202@anastigmatix.net> <5F1664C5.2070700@anastigmatix.net> Cc: pljava-dev@lists.postgresql.org From: Chapman Flack X-Enigmail-Draft-Status: N1110 Message-ID: <5F1735ED.6020707@anastigmatix.net> Date: Tue, 21 Jul 2020 14:37:33 -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: 8bit 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 07/21/20 14:03, Kartik Ohri wrote: >>> It is possible to have this syntax. We need to specify an executionID in >>> the executionBlock for that. In the plugin, we can get the entire >>> configuration XML as a Plexus Xpp3Dom object from which we can retrieve >> the >>> attribute from any element. I'll add this. What attribute should be used >>> though mimetype or engine or allow both and give engine precedence over >>> mimetype ? >> > There is one caveat though. This means we need to hard code the executionID > in the mojo. It might be problematic when we specify multiple execution > blocks for different phases. But I am not sure how that works, is a new > Mojo instance initiated for each execution if there are multiple ones since > each execution block has its own configuration block? Hmm. That does sound worrisome. And I don't, at present, know the answer on instantiation; I would assume different executions are distinct instances. I have just had one of those déjà vu moments of thinking "wait, haven't I wondered about this before?" and it seems I did, five years ago (which I guess is long enough to forget). https://stackoverflow.com/a/32800814/4062350 Is it possible to declare the script parameter as a PlexusConfiguration? Does that lead anywhere useful? Regards, -Chap