Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-3955

Add a way for an extension to indicate that it only works as a core extension

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 18.10.0
    • Extension
    • None
    • Unknown

    Description

      Some extensions only work when they are in WEB-INF/lib at startup (core extensions), and fail or half work when installed at runtime, for example:

      • JARs contributing a Hibernate mapping (see XWIKI-19932)
      • old plugins loaded from xwiki.cfg at startup (xwiki-platform-mailsender, xwiki-platform-scheduler-api, ...)
      • xwiki-platform-websocket, whose end-point is registered at startup
      • extension repository factories needed at startup by the configured repositories (xwiki-commons-extension-repository-xwiki)

      Nothing in their descriptor says so. The idea is to let an extension declare it in its pom, the same way <xwiki.extension.namespaces> with {root} restricts an extension to the root namespace.

      Possible uses:

      • the Extension Manager refuses to install such an extension at runtime, or warns that it requires to be in WEB-INF/lib and a restart, instead of installing an extension which does not work
      • the Docker-based test framework puts such extensions found in the dependencies of the test module in WEB-INF/lib of the WAR it builds, instead of each test listing them in the extraJARs parameter of @UITest (their version then comes from the resolved dependencies, see XWIKI-26227)

      Not every extraJARs entry would go away: some come from the test setup rather than from the extension, such as the dependencies of the test module's own classes in WEB-INF/classes (LinkCheckerIT), or workarounds (xwiki-platform-search-solr-query).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: