Skip to content

initial configuration after change from ossrh to central#99

Merged
ivargrimstad merged 7 commits intoeclipse-ee4j:mainfrom
ivargrimstad:publish
Sep 9, 2025
Merged

initial configuration after change from ossrh to central#99
ivargrimstad merged 7 commits intoeclipse-ee4j:mainfrom
ivargrimstad:publish

Conversation

@ivargrimstad
Copy link
Copy Markdown
Member

@ivargrimstad ivargrimstad commented Jun 13, 2025

The EF Infra team is working on a solution for staging.

https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/5854

When merged this PR will close #98

Co-authored-by: Kyle Aure <KyleJAure@gmail.com>
parent/pom.xml Outdated
<artifactId>central-publishing-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<autoPublish>true</autoPublish>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we make this a property so that it can be overridden at the project level?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that the problem with this is that you need a login for the groupId to be able to perform the publish. I'm guessing the EF is not going to give that out.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to keep it as a property, following default names in the plugin, so it could be transparently overridden without a need to disable the execution and write everything again. Not all projects are using the parent are from Eclipse Foundation, and external projects can use different strategies to publish.

The groupId can be changed in "children".

The token is per login, but groupId defines a namespace, login:namespace is m:n relation. User can have access to multiple namespaces, namespace can be managed by multiple users. I have no idea how many users can manage this parent and the org.eclipse.ee4j namespace, for example. We can ask on GitLab ...

To do the deploy you need a token, which is bit surprisingly a pair like this, copy pasted from the Maven Central website to settings.xml; it can be regenerated, so I guess somebody in Eclipse can create credentials for the CI which would be used for that, while committers would never see them.

    <server>
      <id>central</id>
      <username>ADXhkv</username>
      <password>LP3dK1fEgrhJyK7Gdhdaf79nCr8xtKxBa</password>
    </server>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically we could use something like this on Jenkins - however still somebody permitted has to create these credentials: https://stackoverflow.com/a/57463849/375449 .

Another option would be as you wrote, committers would be permitted to publish to a namespace, and then they would use tokens they generated to set build parameters on the CI. However then every project would have to ask to add these people to the namespace, and somebody authorized in Eclipse Foundation then would have to ask Maven Central for changes by email. (I had to do this process for OmniFish, for a company of the size of Eclipse it seems as a lot of work, but maybe it is not so bad).

ivargrimstad and others added 2 commits September 9, 2025 17:17
Co-authored-by: Kyle Aure <KyleJAure@gmail.com>
@ivargrimstad ivargrimstad marked this pull request as ready for review September 9, 2025 15:24
@ivargrimstad
Copy link
Copy Markdown
Member Author

@KyleAure Can you look if these changes look like they are ready to merge

Copy link
Copy Markdown
Member

@KyleAure KyleAure left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ivargrimstad and others added 2 commits September 9, 2025 19:01
Co-authored-by: Kyle Aure <KyleJAure@gmail.com>
Co-authored-by: Kyle Aure <KyleJAure@gmail.com>
@ivargrimstad ivargrimstad merged commit 2ff66d6 into eclipse-ee4j:main Sep 9, 2025
1 check passed
@ivargrimstad ivargrimstad deleted the publish branch September 9, 2025 17:05
@marko-bekhta
Copy link
Copy Markdown
Contributor

Hi @ivargrimstad 👋🏻 🙂
wanted to check with you about this one to see what the release plans are for the new parent pom. Thanks! 🙂

@KyleAure
Copy link
Copy Markdown
Member

I think the plan as to publish a snapshot for child projects to test against. But that is currently blocked by #101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update plugins for publishing to Maven Central after migrating from OSSRH

7 participants