Skip to content

[Misc] Move the legacy module Revapi ignores to the root pom - #394

Merged
vmassol merged 1 commit into
masterfrom
misc-move-legacy-revapi-ignores-to-root-pom
Aug 1, 2026
Merged

[Misc] Move the legacy module Revapi ignores to the root pom#394
vmassol merged 1 commit into
masterfrom
misc-move-legacy-revapi-ignores-to-root-pom

Conversation

@vmassol

@vmassol vmassol commented Jul 31, 2026

Copy link
Copy Markdown
Member

Jira URL

N/A — [Misc] change (build configuration cleanup, no functional impact).

Changes

Description

  • Move the only Revapi ignore that was declared in a legacy module to the root pom.xml, which is
    where xwiki-rendering keeps its Revapi ignores.
    The ignore concerns MacroDescriptorAspect#aroundGetDefaultCategory
    (java.annotation.attributeValueChanged) and was living in
    xwiki-rendering-legacy/xwiki-rendering-legacy-transformations/xwiki-rendering-legacy-transformation-macro/pom.xml.
  • Remove the revapi-maven-plugin declaration from that module: the ignore was its only content, so
    the module now simply inherits the root configuration.

Clarifications

  • The combine.children="append" attribute (and its accompanying comment) is dropped along the way
    since it was only needed to append to the root pom ignores from a child pom.
  • An audit of all the other legacy modules found no other Revapi ignore, so this PR moves everything
    there was to move.
  • The ignore was verified to be load-bearing rather than stale: altering its <code> in the root pom
    makes xwiki-rendering-legacy-transformation-macro fail with the expected
    java.annotation.attributeValueChanged error on aroundGetDefaultCategory, and restoring it makes
    the build pass again. So the ignore is really picked up from the root pom by the legacy module.

Screenshots & Video

N/A — no UI change.

Executed Tests

  • mvn install -B -ntp -Plegacy,snapshot -pl xwiki-rendering-legacy/xwiki-rendering-legacy-transformations/xwiki-rendering-legacy-transformation-macro
    → BUILD SUCCESS, revapi:check runs and passes, 10 tests pass.
  • mvn install -B -ntp -Psnapshot,legacy -DskipTests (full reactor, to validate the inherited root
    Revapi configuration on every module) → BUILD SUCCESS.

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • None

🤖 Generated with Claude Code

* Revapi ignores for xwiki-rendering are declared in the root pom, so move the
  MacroDescriptorAspect#aroundGetDefaultCategory ignore there from the
  xwiki-rendering-legacy-transformation-macro pom.
* The revapi-maven-plugin declaration in that module only existed to hold that
  ignore, so it's removed and the module now inherits the root configuration.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vmassol vmassol self-assigned this Aug 1, 2026
@vmassol
vmassol merged commit d89fd5a into master Aug 1, 2026
2 checks passed
@vmassol
vmassol deleted the misc-move-legacy-revapi-ignores-to-root-pom branch August 1, 2026 09:43
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.

1 participant