Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
18.10.0
-
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
- relates to
-
XWIKI-26227 Extra JARs without version are resolved with the version of the test module when it doesn't depend on them
-
- Closed
-
-
XWIKI-19932 Injecting custom table in the hibernate mapping from an installed extension is too complex
-
- Open
-