Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-26046

The Flamingo skin Docker functional test module fails the macro declaration build check

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 19.0.0-rc-1
    • None
    • Unknown

    Description

      Building xwiki-platform-flamingo-skin-test-docker on master (with -Pdocker,integration-tests) fails in the Spoon check added by XCOMMONS-3862:

      [ERROR] Failed to execute goal fr.inria.gforge.spoon:spoon-maven-plugin:3.8.0:check (spoon-main) on project xwiki-platform-flamingo-skin-test-docker: Exception during the spoonify of the target project. The following errors were found:
      [ERROR] - Macro [test] provided by [org.xwiki.test.TestMacro] is not declared in the [xwiki.extension.components] Maven property. Add [org.xwiki.rendering.macro.Macro/test] to it, or add [test] to the [xwiki.extension.components.macros.check.excluded] Maven property if it is an internal macro.
      

      org.xwiki.test.TestMacro lives in the module's src/main. It is a test-only macro, so the fix is probably to add test to xwiki.extension.components.macros.check.excluded in the module's pom, as other modules do for internal macros.

      The tests themselves pass. Only the build result is affected, so a local run of any test of that module ends in BUILD FAILURE. -Dxwiki.spoon.skip=true works around it.

      PS: This post was co-written with Claude Code.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: