Skip to content

Update Maven Central publishing plugin config#103

Merged
starksm64 merged 1 commit intoeclipse-ee4j:mainfrom
marko-bekhta:fix/update-central-publishing-config
Oct 7, 2025
Merged

Update Maven Central publishing plugin config#103
starksm64 merged 1 commit intoeclipse-ee4j:mainfrom
marko-bekhta:fix/update-central-publishing-config

Conversation

@marko-bekhta
Copy link
Copy Markdown
Contributor

to include the publishingServerId and deployment name. See

I was trying to set up the snapshots for Validation projects, and the build failed with 401 without the publishingServerId part:

[ERROR] Failed to execute goal org.sonatype.central:central-publishing-maven-plugin:0.8.0:publish (injected-central-publishing) on project jakarta.validation-api: Failed to deploy artifacts: Could not transfer artifact jakarta.validation:jakarta.validation-api:jar.asc:4.0.0-20251006.073729-1 from/to central-portal-snapshots (https://central.sonatype.com/repository/maven-snapshots): status code: 401, reason phrase: Unauthorized (401) -> [Help 1]

After I've pulled the config into the project pom and applied these changes the deployment worked: https://ci.eclipse.org/validation/job/jakarta-validation-api-publish-snapshot/job/build%252Fi286-publish-snapshots/6/console

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.

Some other requirements that need to be added to the PR to make the parent ready for release:

  • Remove the <distributionManagement> element from this POM. It is unnecessary since the central plugin will be using it's own configuration elements
  • Fix the comment on the oss-release profile to reflect what this profile is doing now. I.E. creating a profile that will allow child projects to deploy any artifact (SNAPSHOT or GA releases)

@marko-bekhta marko-bekhta force-pushed the fix/update-central-publishing-config branch from 557351a to e749849 Compare October 7, 2025 18:38
@marko-bekhta
Copy link
Copy Markdown
Contributor Author

Hey @KyleAure
I've applied your suggestions 👍🏻 .

another thing worth mentioning... We currently have <waitUntil>published</waitUntil> in the config (https://central.sonatype.org/publish/publish-portal-maven/#waituntil).
I'd consider switching to validated. From what I've seen so far, to get back the "published" status may take a while sometimes, and I suspect it could result in a build failure, while the uploaded bundle will actually get released "eventually"...

@starksm64
Copy link
Copy Markdown
Member

I was able to do a snapshot release of the jakarta.tck.arquillian:* artifacts by bootstraping the local org.eclipse.ee4j:project:2.0.0-SNAPSHOT pom using @marko-bekhta 's current file without any other local configuration.

https://ci.eclipse.org/jakartaee-tck/job/TckToolsArquillianRelease/120/console

I'll merge this and try to put out a 2.0.0-M1 release later tonight.

@starksm64 starksm64 merged commit 9a0bd9d into eclipse-ee4j:main Oct 7, 2025
1 check passed
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.

3 participants