Build check for the macros declared in xwiki.extension.components
Last modified by Manuel Leduc on 2026/11/12 09:51
The build now fails when the macros a module provides don't match the ones declared in its xwiki.extension.components Maven property, which lets the Extension Manager find the extension providing an unknown macro. A new Spoon check verifies Java macros, and mvn xar:verify verifies wiki macros. Extensions using a parent POM of at least 18.10.0 get the check too. The error gives the line to add, e.g. org.xwiki.rendering.macro.Macro/toc. Internal macros go in xwiki.extension.components.macros.check.excluded, and xwiki.extension.components.macros.check.skip disables the check. See Automatic Checks and the XAR Maven plugin documentation.