Skip to content

Fix Maven Central deploy: attach sources/javadoc/signatures, trim reactor - #2

Merged
njuro merged 1 commit into
masterfrom
central-deploy-fix
Jul 29, 2026
Merged

Fix Maven Central deploy: attach sources/javadoc/signatures, trim reactor#2
njuro merged 1 commit into
masterfrom
central-deploy-fix

Conversation

@njuro

@njuro njuro commented Jul 29, 2026

Copy link
Copy Markdown

Follow-up to #1. The first mvn clean deploy of 3.0.1-pb.1 was rejected by the Central Portal because no artifacts had sources jars, javadoc jars, or GPG signatures attached — the Atlassian central-pom parent only wires those under a release profile (activated by mvn release:perform), which a plain mvn clean deploy doesn't trigger.

  • Declare maven-source-plugin, maven-javadoc-plugin (doclint off so third-party javadoc can't fail the release), and maven-gpg-plugin (sign bound to verify) directly in the build, so every deploy attaches sources + javadoc + .asc signatures.
  • Trim <modules> to core + spring-webmvc (the only modules pb-universe consumes), dropping pact/wiremock/restassured/mockmvc/spring-web-client/ktor-client/examples from the public release.

Verified locally: mvn clean verify produces main + -sources + -javadoc jars for both modules; reactor builds with the two modules only.

…d modules

Maven Central rejected the 3.0.1-pb.1 bundle: no sources jars, javadoc jars,
or GPG signatures were attached. The Atlassian central-pom parent only wires
those under its release profile (activated by `mvn release:perform`), so a plain
`mvn clean deploy` produced none of them.

Declare maven-source-plugin, maven-javadoc-plugin (doclint off), and
maven-gpg-plugin (sign bound to verify) directly in the build so every deploy
attaches all three. Also trim <modules> to core + spring-webmvc (the only
modules pb-universe consumes), dropping pact/wiremock/restassured/mockmvc/
spring-web-client/ktor-client/examples from the public release.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@njuro
njuro merged commit 30f6947 into master Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant