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 1k8nvK-00045U-MI for pljava-dev@arkaria.postgresql.org; Thu, 20 Aug 2020 17:00:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k8nvJ-0002ce-L7 for pljava-dev@arkaria.postgresql.org; Thu, 20 Aug 2020 17:00:21 +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 1k8nvJ-0002cX-DZ for pljava-dev@lists.postgresql.org; Thu, 20 Aug 2020 17:00:21 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k8nvG-0007nl-O5 for pljava-dev@lists.postgresql.org; Thu, 20 Aug 2020 17:00:21 +0000 Received: by mail-ej1-x631.google.com with SMTP id o18so3341519eje.7 for ; Thu, 20 Aug 2020 10:00:18 -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=WolTuEcHiC2qlU5RHo/y7bUEx1on/Vvzp3yX64hpq4g=; b=GbFPZvgU/D/dK8wx7NxQ0tVUCsfL89kEf7IkS34U3sM3Bo1ZZfIZSi3hZxx2ZaYB2x GCRmezCkHKqM4oLvebZNhRW2rQoqNHeJLxBnN+nbr/E7w65FJUuRn23w1g2MNuV6EeGW JW9e6CMPGFd5DEK7tgBN2URcjZc5ZSJ/UyYT0TMJGhnulNZcbwk0D3TWsfTKSaHlMNK+ aL3lwr6+Iu+8T/uva1i9HO1xw+I4Ky+xVmiIqB09Ey8Q+zf4bFxEiO1xaQY9VZBz5VHU dIYrDYxhXwqEuAdDP88Reonr8+PjVnXSmiHBOKX0AYte0w653sZDVvRoSws7HwdsrAvi jInw== 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=WolTuEcHiC2qlU5RHo/y7bUEx1on/Vvzp3yX64hpq4g=; b=RT01YhMSuTaqcBBtBVRm7Uazd1I8MRNW6fST/UEBT3QEmbJCipl10EnxqmwPzbdQEy t7g2E3YtG5n1NWq+HoNGFL9N+NtDlxsnIcVyJYlCJ3IlQ80XXJzds2gaoXnQL9qBxMZz PaNJw01h/uUWGKJzseeid8cyKp3yWvWLaZ8/cTt0k5ulyZsIHEVZ52nBEw+N2xamJ6be U7jZbs7dsKsuWIcotc+5MtEaPKMYvMB8bs0iDRoivOJuZBZa0PhUpBlKM2uEz0tpa0j1 p9KjdQyhVf2C85Jiu7wiiX5f0TjFd9gnV6qu27gsrCCuF6sMOD3yV45ygdpIAb7mbenm aVkQ== X-Gm-Message-State: AOAM532ypp2oXmFbYFpNPQSRGfAikK0KRdW4bGN0M8jgVRfHTVNvOH/f Zb1LcEtKRgoFC9t9aikxl6NX6OHJLiCnUaSKMwYXfv3/GUDBWQ== X-Google-Smtp-Source: ABdhPJxI3nV0ELpXKjtj3lavgQ7GwjujSqicHBAQDIa+fpbKDgpQOWZoG0xMANU/tiIPXCowfi8ViQMAEiqxq7uwC40= X-Received: by 2002:a17:906:eca4:: with SMTP id qh4mr4105799ejb.255.1597942816451; Thu, 20 Aug 2020 10:00:16 -0700 (PDT) MIME-Version: 1.0 References: <5F2A29E4.2000803@anastigmatix.net> <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> In-Reply-To: <5F3D3D2E.4070109@anastigmatix.net> From: Kartik Ohri Date: Thu, 20 Aug 2020 22:30:04 +0530 Message-ID: Subject: ScriptingMojo Custom Packaging To: Chapman Flack Cc: pljava-dev@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000f2315405ad520d12" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000f2315405ad520d12 Content-Type: text/plain; charset="UTF-8" > > I think my inclination would be to supply such a file with the role-hint > of 'pgxs', and mapping every phase to empty. Then what the plugin does will > be completely determined by what script s you configure, and > what phases you put them in. > > Then the packaging type of pljava-so could be pgxs, and you would simply > specify the for each in the pom (as is already done > for the set-properties execution). So, what the plugin does will be > completely determined by what script s you configure, and > what phases you put them in. > > I think I would also change ScriptingMojo to declare COMPILE as its > default phase. The set-properties execution would still specify > initialize as its phase, as it does now, but I think the usual > behavior is if a phase isn't specified, it will be compile. > 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. --000000000000f2315405ad520d12 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I think my inclination would be to supply such a file wi= th the role-hint
of 'pgxs', and mapping every phase to empty. Then what the plugin d= oes will
be completely determined by what script <execution>s you configure, a= nd
what phases you put them in.

Then the packaging type of pljava-so could be pgxs, and you would simply specify the <phase> for each <execution> in the pom (as is alre= ady done
for the set-properties execution). So, what the plugin does will be
completely determined by what script <execution>s you configure, and<= br> what phases you put them in.

I think I would also change ScriptingMojo to declare COMPILE as its
default phase. The set-properties execution would still specify
initialize as its phase, as it does now, but I think the usual
behavior is if a phase isn't specified, it will be compile.

I have made these changes=C2=A0https://gist.github.com/amCap1712/ad9fe94fd9fb6f4ff4f26913a464c226. = I checked the jar files manually to make sure the file is present in it. Th= e pgxs jar is also listed in the lists of url classpaths.
--000000000000f2315405ad520d12--