You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sebb <se...@gmail.com> on 2023/12/19 14:27:04 UTC

[NUMBERS] GH deploy snapshot test

Created https://issues.apache.org/jira/browse/INFRA-25297 to get
access to credentials

Added code to maven.yml to deploy the snapshot (needs to be enabled
when creds are granted)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [NUMBERS] GH deploy snapshot test

Posted by sebb <se...@gmail.com>.
On Wed, 20 Dec 2023 at 16:16, Alex Herbert <al...@gmail.com> wrote:
>
> On Wed, 20 Dec 2023 at 13:19, sebb <se...@gmail.com> wrote:
> >
> > On Tue, 19 Dec 2023 at 16:08, Alex Herbert <al...@gmail.com> wrote:
> > >
> > > Thanks Sebb,
> > >
> > > Note that previously the GH action was running the default goal:
> > > 'clean verify javadoc:javadoc'.
> > >
> > > Since we now need to specify the 'deploy' goal as well the above
> > > defaults can be switched in for your additions when Infra have created
> > > the credentials.
> >
> > I added javadoc:javadoc to the goals, but I left out the verify goal
> > as it should be part of deploy.
> >
> > The build mostly succeeded, but the BOM module failed, as it requires
> > a GPG secret key.
> > Is that needed for SNAPSHOT builds?
>
> TLDR; No. Try '-Dgpg.skip'.

Thanks, now builds OK.

> The BOM module is a bit of a fudge to create a minimal BOM. It would
> be nice if this has a dedicated plugin to build a bom with some more
> control over build and deploy. As it is I had to do a lot of Maven
> config to get it to work.
>
> It looks like the GPG profiles are being activated by presence/absence
> of the gpg.skip property. Since this is for a snapshot deployment it
> should work if you update the maven goal to include '-Dgpg.skip'.
>
> Alex
>
>
> >
> > > Alex
> > >
> > > On Tue, 19 Dec 2023 at 14:29, sebb <se...@gmail.com> wrote:
> > > >
> > > > Created https://issues.apache.org/jira/browse/INFRA-25297 to get
> > > > access to credentials
> > > >
> > > > Added code to maven.yml to deploy the snapshot (needs to be enabled
> > > > when creds are granted)
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> > > > For additional commands, e-mail: dev-help@commons.apache.org
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> > > For additional commands, e-mail: dev-help@commons.apache.org
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> > For additional commands, e-mail: dev-help@commons.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [NUMBERS] GH deploy snapshot test

Posted by Alex Herbert <al...@gmail.com>.
On Wed, 20 Dec 2023 at 13:19, sebb <se...@gmail.com> wrote:
>
> On Tue, 19 Dec 2023 at 16:08, Alex Herbert <al...@gmail.com> wrote:
> >
> > Thanks Sebb,
> >
> > Note that previously the GH action was running the default goal:
> > 'clean verify javadoc:javadoc'.
> >
> > Since we now need to specify the 'deploy' goal as well the above
> > defaults can be switched in for your additions when Infra have created
> > the credentials.
>
> I added javadoc:javadoc to the goals, but I left out the verify goal
> as it should be part of deploy.
>
> The build mostly succeeded, but the BOM module failed, as it requires
> a GPG secret key.
> Is that needed for SNAPSHOT builds?

TLDR; No. Try '-Dgpg.skip'.

The BOM module is a bit of a fudge to create a minimal BOM. It would
be nice if this has a dedicated plugin to build a bom with some more
control over build and deploy. As it is I had to do a lot of Maven
config to get it to work.

It looks like the GPG profiles are being activated by presence/absence
of the gpg.skip property. Since this is for a snapshot deployment it
should work if you update the maven goal to include '-Dgpg.skip'.

Alex


>
> > Alex
> >
> > On Tue, 19 Dec 2023 at 14:29, sebb <se...@gmail.com> wrote:
> > >
> > > Created https://issues.apache.org/jira/browse/INFRA-25297 to get
> > > access to credentials
> > >
> > > Added code to maven.yml to deploy the snapshot (needs to be enabled
> > > when creds are granted)
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> > > For additional commands, e-mail: dev-help@commons.apache.org
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> > For additional commands, e-mail: dev-help@commons.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [NUMBERS] GH deploy snapshot test

Posted by sebb <se...@gmail.com>.
On Tue, 19 Dec 2023 at 16:08, Alex Herbert <al...@gmail.com> wrote:
>
> Thanks Sebb,
>
> Note that previously the GH action was running the default goal:
> 'clean verify javadoc:javadoc'.
>
> Since we now need to specify the 'deploy' goal as well the above
> defaults can be switched in for your additions when Infra have created
> the credentials.

I added javadoc:javadoc to the goals, but I left out the verify goal
as it should be part of deploy.

The build mostly succeeded, but the BOM module failed, as it requires
a GPG secret key.
Is that needed for SNAPSHOT builds?

> Alex
>
> On Tue, 19 Dec 2023 at 14:29, sebb <se...@gmail.com> wrote:
> >
> > Created https://issues.apache.org/jira/browse/INFRA-25297 to get
> > access to credentials
> >
> > Added code to maven.yml to deploy the snapshot (needs to be enabled
> > when creds are granted)
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> > For additional commands, e-mail: dev-help@commons.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [NUMBERS] GH deploy snapshot test

Posted by Alex Herbert <al...@gmail.com>.
Thanks Sebb,

Note that previously the GH action was running the default goal:
'clean verify javadoc:javadoc'.

Since we now need to specify the 'deploy' goal as well the above
defaults can be switched in for your additions when Infra have created
the credentials.

Alex

On Tue, 19 Dec 2023 at 14:29, sebb <se...@gmail.com> wrote:
>
> Created https://issues.apache.org/jira/browse/INFRA-25297 to get
> access to credentials
>
> Added code to maven.yml to deploy the snapshot (needs to be enabled
> when creds are granted)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org