Migrating to new Maven central publising system

38 views
Skip to first unread message

Olivier Lamy

unread,
May 9, 2025, 7:54:53 PMMay 9
to mojoha...@googlegroups.com
Hi there
As some of you know, the current oss.sonatype.org will expire on 30 June 2025.
Are we ready to move yet? (Some of you may have the migrate button
ready to hit.)
As you have noticed, the new portal doesn't support a public staging
feature, but we have not used the voting system recently.

Please let me know what your thoughts are.

Cheers
--
Olivier

Slawomir Jaranowski

unread,
May 10, 2025, 7:17:12 AMMay 10
to mojoha...@googlegroups.com
I think we can do it ... we don't have an option ...

I also see a 'migrate' button.

In my release queas are:
- parent
- version plugin
- exec plugin
- build-helper plugin

so we can try migrate, fix parent, release and go with rest

>
> Cheers
> --
> Olivier
>
> --
> You received this message because you are subscribed to the Google Groups "mojohaus-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mojohaus-dev...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/mojohaus-dev/CAPoyBqT406HC6bXDCpY8zBT4apX5BSkADh5huqKHY1TH5X5OXw%40mail.gmail.com.



--
Sławomir Jaranowski

Olivier Lamy

unread,
May 14, 2025, 2:10:27 AMMay 14
to mojoha...@googlegroups.com
Hi,
It looks like not many people are complaining.
Now the question is: are we using njord or sonatype plugin? (let's see
if someone is listening here and will react quickly :P)
Ideally, our release process should be streamlined to allow a simple
execution like:
mvn release:prepare release:perform -DskipTests
-Darguments="-DskipTests -Dspotbugs.skip=true" -DlocalCheckout=true -B
And voila it's in central portal and we simply to hit publish (or
validate button)

wdyt?
> To view this discussion visit https://groups.google.com/d/msgid/mojohaus-dev/CAGjJkv2cGkG5Y0ds%3DOySH1AnsVK8BfCPAz7qvqASCcgyZv7OVQ%40mail.gmail.com.

--
Olivier

mfried...@gmx.de

unread,
May 14, 2025, 2:55:47 AMMay 14
to mojoha...@googlegroups.com
Hi,

if I understood this correctly, the number of people is restricted per organisation. And your plan would be to do this on developers' workstations, right?


Best Regards
Mirko Friedenhagen
--
Sent with my mobile

Am 14.05.25 um 08:10 schrieb Olivier Lamy
> To view this discussion visit https://groups.google.com/d/msgid/mojohaus-dev/CAPoyBqQnGL_gkcos7Paid1FLLUzK%3Duj-At87%2BSuBamGsO3Ry%3DA%40mail.gmail.com.
>

Slawomir Jaranowski

unread,
May 14, 2025, 2:56:12 AMMay 14
to mojoha...@googlegroups.com
On Wed, 14 May 2025 at 08:10, Olivier Lamy <olive...@gmail.com> wrote:
Hi,
It looks like not many people are complaining.
Now the question is: are we using njord or sonatype plugin? (let's see
if someone is listening here and will react quickly :P)
Ideally, our release process should be streamlined to allow a simple
execution like:
mvn release:prepare release:perform -DskipTests
-Darguments="-DskipTests -Dspotbugs.skip=true" -DlocalCheckout=true -B
And voila it's in central portal and we simply to hit publish (or
validate button)

I would like to start with the sonatype plugin, as I know njord is an extension
so we need to make a change in all projects.

With sonatype we need only update a parent.

We have a quick way to contact sonatype by ASF slack.

Slawomir Jaranowski

unread,
May 14, 2025, 3:01:52 AMMay 14
to mojoha...@googlegroups.com
On Wed, 14 May 2025 at 08:55, mfriedenhagen via mojohaus-dev <mojoha...@googlegroups.com> wrote:
Hi,

if I understood this correctly, the number of people is restricted per organisation. And your plan would be to do this on developers' workstations, right?

No change is required on workstation.

Only the release manager needs to update your settings.xml with a new token.
 

Alexander Kriegisch

unread,
May 14, 2025, 4:03:09 AMMay 14
to mojoha...@googlegroups.com
I am not a Mojohaus committer, but FWIW, I lately switched one of my own
projects - incidentally a Mojohaus fork - to the new Central Publishing
Maven Plugin, and it was pretty much painless. I could even get rid of
some cruft from the previous POM, i.e. no more distribution management
section due to the plugin's ability to also deploy snapshots to the
Maven Central snapshot repository.

I have not performed any release yet, but a snapshot deployment went
well, and I am not expecting any problems with an non-snapshot release.

This is the change I made:
https://github.com/dev-aspectj/aspectj-maven-plugin/commit/380544088ab36d5d37ac1268074fc24aa7f0dc28?diff=split&w=0

Piece of cake.
--
Alexander Kriegisch
https://scrum-master.de


Slawomir Jaranowski schrieb am 14.05.2025 um 13:55:
>
>
> On Wed, 14 May 2025 at 08:10, Olivier Lamy <olive...@gmail.com
> <mailto:olive...@gmail.com>> wrote:
>
> Hi,
> It looks like not many people are complaining.
> Now the question is: are we using njord or sonatype plugin? (let's see
> if someone is listening here and will react quickly :P)
> Ideally, our release process should be streamlined to allow a simple
> execution like:
> mvn release:prepare release:perform -DskipTests
> -Darguments="-DskipTests -Dspotbugs.skip=true" -DlocalCheckout=true -B
> And voila it's in central portal and we simply to hit publish (or
> validate button)
>
>
> I would like to start with the sonatype plugin, as I know njord is an
> extension
> so we need to make a change in all projects.
>
> With sonatype we need only update a parent.
>
> We have a quick way to contact sonatype by ASF slack.
>
>
> wdyt?
>
> On Sat, 10 May 2025 at 21:17, Slawomir Jaranowski
> <s.jara...@gmail.com <mailto:s.jara...@gmail.com>> wrote:
> >
> > On Sat, 10 May 2025 at 01:54, Olivier Lamy <olive...@gmail.com
> <mailto:olive...@gmail.com>> wrote:
> > >
> > > Hi there
> > > As some of you know, the current oss.sonatype.org <http://
> oss.sonatype.org> will expire on 30 June 2025.
> > > Are we ready to move yet? (Some of you may have the migrate button
> > > ready to hit.)
> > > As you have noticed, the new portal doesn't support a public staging
> > > feature, but we have not used the voting system recently.
> > >
> > > Please let me know what your thoughts are.
> >
> > I think we can do it ... we don't have an option ...
> >
> > I also see a 'migrate' button.
> >
> > In my release queas are:
> >  - parent
> >  - version plugin
> >  - exec plugin
> >  - build-helper plugin
> >
> > so we can try migrate, fix parent, release and go with rest
> >
> > >
> > > Cheers
> > > --
> > > Olivier
> > >
> > > --
> > > You received this message because you are subscribed to the
> Google Groups "mojohaus-dev" group.
> > > To unsubscribe from this group and stop receiving emails from
> it, send an email to mojohaus-dev...@googlegroups.com
> <mailto:mojohaus-dev%2Bunsu...@googlegroups.com>.
> > > To view this discussion visit https://groups.google.com/d/msgid/
> mojohaus-dev/
> CAPoyBqT406HC6bXDCpY8zBT4apX5BSkADh5huqKHY1TH5X5OXw%40mail.gmail.com
> <https://groups.google.com/d/msgid/mojohaus-dev/
> CAPoyBqT406HC6bXDCpY8zBT4apX5BSkADh5huqKHY1TH5X5OXw%40mail.gmail.com>.
> >
> >
> >
> > --
> > Sławomir Jaranowski
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "mojohaus-dev" group.
> > To unsubscribe from this group and stop receiving emails from it,
> send an email to mojohaus-dev...@googlegroups.com
> <mailto:mojohaus-dev%2Bunsu...@googlegroups.com>.
> > To view this discussion visit https://groups.google.com/d/msgid/
> mojohaus-dev/
> CAGjJkv2cGkG5Y0ds%3DOySH1AnsVK8BfCPAz7qvqASCcgyZv7OVQ%40mail.gmail.com <https://groups.google.com/d/msgid/mojohaus-dev/CAGjJkv2cGkG5Y0ds%3DOySH1AnsVK8BfCPAz7qvqASCcgyZv7OVQ%40mail.gmail.com>.
>
> --
> Olivier
>
> --
> You received this message because you are subscribed to the Google
> Groups "mojohaus-dev" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to mojohaus-dev...@googlegroups.com
> <mailto:mojohaus-dev%2Bunsu...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/
> mojohaus-dev/CAPoyBqQnGL_gkcos7Paid1FLLUzK%3Duj-
> At87%2BSuBamGsO3Ry%3DA%40mail.gmail.com <https://groups.google.com/
> d/msgid/mojohaus-dev/CAPoyBqQnGL_gkcos7Paid1FLLUzK%3Duj-
> At87%2BSuBamGsO3Ry%3DA%40mail.gmail.com>.
>
>
>
> --
> Sławomir Jaranowski
>
> --
> You received this message because you are subscribed to the Google
> Groups "mojohaus-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to mojohaus-dev...@googlegroups.com <mailto:mojohaus-
> dev+uns...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/
> mojohaus-dev/
> CAGjJkv0QBokkjRvp1Kqt3VhdRub0vCrYJzMrJSKxTym84QLMbA%40mail.gmail.com
> <https://groups.google.com/d/msgid/mojohaus-dev/
> CAGjJkv0QBokkjRvp1Kqt3VhdRub0vCrYJzMrJSKxTym84QLMbA%40mail.gmail.com?
> utm_medium=email&utm_source=footer>.

Tamás Cservenák

unread,
May 16, 2025, 10:32:38 AMMay 16
to mojoha...@googlegroups.com
Howdy,

Njord just got fixed to work as POM/build/extension as well.
So it should work from parent as well.

Cheers
T

PS: Version is not yet out, will be 0.5.2

On Wed, May 14, 2025 at 8:56 AM Slawomir Jaranowski
> To view this discussion visit https://groups.google.com/d/msgid/mojohaus-dev/CAGjJkv0QBokkjRvp1Kqt3VhdRub0vCrYJzMrJSKxTym84QLMbA%40mail.gmail.com.

Olivier Lamy

unread,
May 16, 2025, 6:30:02 PMMay 16
to mojoha...@googlegroups.com
Thanks for this improvement!
I guess we have no excuse now not to use Njord :P

@Slawek, do you want to modify parent, etc., or can I do it? Just let me know.
We might need to document the new release/publish process (setup of
~/.m2/settings.xml, etc.).
> To view this discussion visit https://groups.google.com/d/msgid/mojohaus-dev/CAPLpRQ%2Bi9NfqAteTVG-s-7scJVyrrRz58o08feGE%3D-y5iqcYTg%40mail.gmail.com.

--
Olivier

Slawomir Jaranowski

unread,
May 17, 2025, 3:53:56 AMMay 17
to mojoha...@googlegroups.com
On Sat, 17 May 2025 at 00:30, Olivier Lamy <olive...@gmail.com> wrote:
Thanks for this improvement!
I guess we have no excuse now not to use Njord :P

@Slawek, do you want to modify parent, etc., or can I do it? Just let me know.
We might need to document the new release/publish process (setup of
~/.m2/settings.xml, etc.).


Ok, do it - change parent, documentation next I will try to release the next plugins based on new parent.

 

Olivier Lamy

unread,
May 17, 2025, 4:30:38 AMMay 17
to mojoha...@googlegroups.com
Sure.
I will prepare this.
But please note that it looks like nothing will be automatic. (see
attached screenshot)
I will send the email.

Cheers
Olivier

On Sat, 17 May 2025 at 17:53, Slawomir Jaranowski
> To view this discussion visit https://groups.google.com/d/msgid/mojohaus-dev/CAGjJkv36SKQjr3uy0EJyWjVFYr3UPdj-vUtYZt6b4%2B%3DiBV0x4A%40mail.gmail.com.

--
Olivier
image.png

Olivier Lamy

unread,
May 20, 2025, 4:48:31 PMMay 20
to mojoha...@googlegroups.com
FYI
Current ETA


Tamás Cservenák

unread,
May 20, 2025, 5:07:35 PMMay 20
to mojoha...@googlegroups.com
Wow, so this is quite interesting.... There are a LOT of unrelated projects here....

T

Olivier Lamy

unread,
May 22, 2025, 4:51:35 PMMay 22
to mojoha...@googlegroups.com
here we go it's done

image.png
--
Olivier

Slawomir Jaranowski

unread,
May 22, 2025, 5:06:18 PMMay 22
to mojoha...@googlegroups.com
I also see that it is migrated ... so we can start testing ... 
I hope to find a time tomorrow



--
Sławomir Jaranowski

Olivier Lamy

unread,
May 23, 2025, 7:13:22 PMMay 23
to mojoha...@googlegroups.com
Hi
All done now. PR merged and new parent pom 88 released to central.
Please note this new configuration in your ~/.m2/settings.xml https://www.mojohaus.org/development/performing-a-release.html#Preparing_your_environment

cheers
Olivier




--
Olivier
Reply all
Reply to author
Forward
0 new messages