Repository navigation
XCOMMONS-3862: Add a build check verifying that the provided macros are declared in xwiki.extension.components - #459
Conversation
…re declared in xwiki.extension.components * Declare the macros of the box, comment, content, ctsreport, footnotes, html, id, message, raw and toc macro modules so that the Extension Manager can suggest installing them Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I'm surprised to not see any mention of |
…re declared in xwiki.extension.components * Exclude the internal macros from xwiki.extension.components using the xwiki.extension.components.macros.check.excluded Maven property, so that the editor doesn't suggest installing them * Use the renamed xwiki.extension.components.macros.check.skip Maven property Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Good catch, thanks. This module is in The check never reported it because it crashed on this module: I updated xwiki/xwiki-commons#2104 accordingly, and excluded |
I could not find the comment anymore on xwiki-platform and finally noticed I had put it on the wrong PR... |
| </xwiki.extension.components> | ||
| <!-- Internal macro inserted by the footnote macro, not declared in xwiki.extension.components so that the editor | ||
| doesn't suggest installing it --> | ||
| <xwiki.extension.components.macros.check.excluded>putFootnotes</xwiki.extension.components.macros.check.excluded> |
There was a problem hiding this comment.
Not that it's allowed to use this macro (when you want the footnotes to be inserted in a specific location). But it would probably be noise from macro index point of view, so I would suggest keeping the exclusion.



Jira URL
https://jira.xwiki.org/browse/XCOMMONS-3862
Changes
Description
xwiki.extension.components, so that the Extension Manager can suggest installing them.ctsdata(rendering compatibility test suite) andputFootnotes(inserted by thefootnotemacro) macros with thexwiki.extension.components.macros.check.excludedMaven property, so that the editor doesn't suggest installing them.Clarifications
Screenshots & Video
N/A, build-only change.
Executed Tests
mvn -B -ntp install -DskipTestsagainst the commons branch of XCOMMONS-3862: Add a build check verifying that the provided macros are declared in xwiki.extension.components xwiki-commons#2104: it fails without this change, with one error per missing macro, and passes with it.mvn -B -ntp verify -Pquality -DskipTestson the ctsreport and footnotes modules after adding the exclusions. Emptying the exclusions with-Dxwiki.extension.components.macros.check.excluded=makes the footnotes build fail onputFootnotes.Expected merging strategy
🤖 Generated with Claude Code