Skip to content

Javadoc footer: resolve the abbreviated commit id - #797

Merged
tisonkun merged 1 commit into
mainfrom
fix-javadoc-footer-commit-id
Nov 11, 2026
Merged

tisonkun merged 1 commit into
mainfrom
fix-javadoc-footer-commit-id

Conversation

@leerho

@leerho leerho commented Nov 10, 2026

Copy link
Copy Markdown
Member

A minor documentation fix for the next release. 9.1.0 and gh-pages are left as they are.

The 9.1.0 Javadoc footer reads:

Copyright © 2015–2026 The Apache Software Foundation.All rights reserved. (Commit Time: 2026-11-07T21:24:13-08:00, Commit: ${git.commit.id.abbrev})

Cause

  • The git-commit-id plugin's includeOnlyProperties filter dropped git.commit.id.abbrev, so Maven left the placeholder as text.
  • The plugin also produced git.commit.id rather than git.commit.id.full, which the jar manifests use. Release jars were correct only because tools/mvn_clean_install_or_deploy.sh passes -Dgit.commit.id.full. A plain mvn package, or the javadoc.yml workflow, left it unresolved.
  • The <bottom> text was split across two lines, and javadoc joined them without a space.

Changes

  • pom.xml:
    • commitIdGenerationMode is set to full.
    • includeOnlyProperties keeps git.commit.id.full and git.commit.id.abbrev instead of git.commit.id.
    • The footer is on one line.
  • tools/mvn_clean_install_or_deploy.sh also passes -Dgit.commit.id.abbrev: 7 characters, or unknown without a .git directory.

Checked

  • mvn clean javadoc:javadoc gives … The Apache Software Foundation. All rights reserved. (Commit Time: …, Commit: ef440a8).
  • A plain mvn package jar manifest has the real git-commit-id.
  • mvn apache-rat:check passes.

🤖 Generated with Claude Code

The footer showed a literal ${git.commit.id.abbrev}, and "Foundation.All"
had no space.

- The git-commit-id plugin's includeOnlyProperties dropped
  git.commit.id.abbrev, so the property was never defined.
- The plugin produced git.commit.id but not git.commit.id.full, which the
  manifests use. Release builds worked only because
  mvn_clean_install_or_deploy.sh passes -Dgit.commit.id.full.

This sets commitIdGenerationMode to full and keeps git.commit.id.full and
git.commit.id.abbrev. It puts the footer on one line, and the release
script also passes -Dgit.commit.id.abbrev (7 characters, or unknown without
a .git directory).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leerho
leerho requested review from proost and tisonkun November 10, 2026 20:04

@tisonkun tisonkun left a comment

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.

Thanks!

@tisonkun
tisonkun merged commit 5ff11f6 into main Nov 11, 2026
6 checks passed
@leerho
leerho deleted the fix-javadoc-footer-commit-id branch November 12, 2026 20:18
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.

2 participants