Skip to content

Issue #69 - Build the site with Doxia 2 - #70

Merged
NassimBtk merged 1 commit into
mainfrom
feature/issue-69-build-the-site-with-doxia-2
Oct 8, 2026
Merged

NassimBtk merged 1 commit into
mainfrom
feature/issue-69-build-the-site-with-doxia-2

Conversation

@NassimBtk

Copy link
Copy Markdown
Contributor

Closes #69

What changed

Build the site with Doxia 2, as community-connectors does:

  • pom.xml: maven-site-plugin 4.0.0-M16 with org.sentrysoftware.maven:maven-skin-tools 1.8.01. oss-parent 5 still configures 3.12.1 with maven-skin-tools 1.3.00.
  • src/site/site.xml: the SITE 2.0.0 format with sentry-maven-skin 8.0.00. The content is unchanged: same banner, links and menus. ® becomes ®, because the 2.0.0 descriptor is plain XML.

Why

On runners with Maven 3.10.0 (image ubuntu24/20261004 and later), mvn site fails with AbstractMethodError: Receiver class org.apache.velocity.tools.ToolContext does not define or inherit an implementation of ... remove(java.lang.Object) of interface org.apache.velocity.context.Context.

The site plugin class path holds two generations of Velocity with the same packages:

  • Velocity 1.7 and velocity-tools 2.0, from doxia-site-renderer 1.11.1;
  • Velocity 2.3 and velocity-tools-generic 3.1, from maven-skin-tools 1.3.00.

Maven 3.9 put the Velocity 2 jars first (realm positions 3-4, before the 1.7 jars at 103-106). Maven 3.10 interleaves them (tools-generic 3.1 at 28, Velocity 1.7 at 48, velocity-engine-core 2.3 at 57), so ToolContext and Context come from different generations. With Doxia 2, only Velocity 2 is left, and the order no longer matters. Details in the issue.

Validation

mvn clean verify site, from a plain clone, with empty settings and JDK 17:

Maven Result
3.10.0 BUILD SUCCESS, tests pass, site generated with the skin (css/main-combined.css, logo, menus, Javadoc)
3.9.12 BUILD SUCCESS, same output

Before this change, Maven 3.10.0 reproduced the AbstractMethodError locally.

From a git worktree, the maven-changelog-plugin report fails because JGit does not read worktrees. That is unrelated to this change; the CI uses a plain checkout.

Notes

  • Moving the site plugin and skin tools versions into oss-parent would fix every project at once. This PR covers this repository.

🤖 Generated with Claude Code

oss-parent configures maven-site-plugin 3.12.1 with maven-skin-tools
1.3.00, which puts Velocity 1.7 / velocity-tools 2.0 and Velocity 2.3 /
velocity-tools 3.1 on the plugin class path. Maven 3.10 orders that class
path differently from Maven 3.9 and mixes them, so the site fails with
an AbstractMethodError on org.apache.velocity.tools.ToolContext.

Use maven-site-plugin 4.0.0-M16 with maven-skin-tools 1.8.01 (Doxia 2,
one Velocity generation), and the SITE 2.0.0 descriptor with
sentry-maven-skin 8.0.00, as community-connectors does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T15:29:56.329531Z d756b9c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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.

Site build fails with Maven 3.10.0

1 participant