Skip to content

build: skip Maven deploy for fesod-benchmark - #1229

Merged
bengbengbalabalabeng merged 1 commit into
apache:mainfrom
GOODBOY008:build/skip-benchmark-deploy
Oct 16, 2026
Merged

bengbengbalabalabeng merged 1 commit into
apache:mainfrom
GOODBOY008:build/skip-benchmark-deploy

Conversation

@GOODBOY008

Copy link
Copy Markdown
Member

Purpose of the pull request

fesod-benchmark must not be published to Maven Central. Since it joined the reactor in #575 (after the 2.1.0-incubating release), the next release following the documented steps would deploy it.

What's changed?

Added maven.deploy.skip=true to fesod-benchmark/pom.xml.

The release guide runs mvn clean deploy -Papache-release -DskipTests -Dgpg.skip=false over the full reactor. I verified the current behavior on main (2e606a5) with the same command redirected to a local file:// repository:

  • All 6 modules deploy, including fesod-benchmark (pom + jar + sources jar).
  • The uploaded jar is the 110 kB thin jar — the 23.5 MB shaded benchmarks.jar uberjar stays local (finalName does not replace the main artifact).
  • The uploaded pom is the shade-rewritten dependency-reduced-pom, which strips all compile/runtime dependencies (fesod-sheet, jmh-core, POI, slf4j). Publishing it would put a broken, unusable artifact on Maven Central.

With this change, re-running the identical command shows Skipping artifact deployment for fesod-benchmark, and only the 5 release modules (fesod-parent, fesod-bom, fesod-common, fesod-shaded, fesod-sheet) reach the repository. The module still builds, shades and installs normally, so benchmark CI and JMH workflows are unaffected.

This matches the common Apache practice of excluding benchmark/test-only modules from deployment.

Checklist

  • I have read the Contributor Guide.
  • I have written the necessary doc or comment.
  • I have added the necessary unit tests and all cases have passed.

fesod-benchmark is an internal JMH module and not a published artifact.
Since it was added to the reactor (PR apache#575), the release command
'mvn clean deploy -Papache-release' would upload it to the ASF staging
repository: a thin jar plus the shade-rewritten dependency-reduced pom
with all compile/runtime dependencies stripped, which would publish a
broken artifact to Maven Central.

Set maven.deploy.skip=true so the module still builds and installs
locally (benchmark CI unaffected) but is excluded from deployment.

Signed-off-by: gongzhongqiang <gongzhongqiang@apache.org>
Copilot AI balanced review requested due to automatic review settings October 16, 2026 10:30

Copilot AI left a comment

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@bengbengbalabalabeng bengbengbalabalabeng left a comment

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.

LGTM.

@bengbengbalabalabeng
bengbengbalabalabeng merged commit 8bb5674 into apache:main Oct 16, 2026
9 checks 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