Details
-
Bug
-
Resolution: Fixed
-
Major
-
18.10.0
-
Unknown
-
N/A
-
N/A
-
Description
When a Docker-based functional test declares an extra JAR without version (the extraJARs parameter of @UITest) and that artifact is not among the dependencies of the test module, the test framework resolves it with the version of the test module itself. This is only correct when the artifact is released with the same version as the test module. XWiki Commons, XWiki Rendering and XWiki Platform artifacts have their own version, held by the commons.version, rendering.version and platform.version properties, which can differ from the version of the test module:
- in an extension with its own version (e.g. a contrib extension), for any XWiki Commons, XWiki Rendering or XWiki Platform extra JAR
- in a branch of XWiki Platform built with a version of its own, such as a feature-deploy-* branch built without matching XWiki Commons and XWiki Rendering branches, for XWiki Commons and XWiki Rendering extra JARs
STEPS TO REPRODUCE:
- In the Docker test module of an extension in version 2.3.1-SNAPSHOT, add org.xwiki.platform:xwiki-platform-mailsender to extraJARs without depending on it
- Run the test
EXPECTED RESULTS:
The extra JAR is resolved with platform.version.
ACTUAL RESULTS:
The test setup fails with Could not find artifact org.xwiki.platform:xwiki-platform-mailsender:jar:2.3.1-SNAPSHOT.
The same happens for ExtensionIT, LinkCheckerIT and RepositoryIT on a feature-deploy-* branch of XWiki Platform only, built on ci.xwiki.org with the version 19.0.0-<branch>SNAPSHOT: Could not find artifact org.xwiki.commons:xwiki-commons-extension-repository-xwiki:jar:19.0.0<branch>-SNAPSHOT (same for xwiki-commons-extension-repository-maven and xwiki-rendering-transformation-linkchecker).
Attachments
Issue Links
- is related to
-
XCOMMONS-3955 Add a way for an extension to indicate that it only works as a core extension
-
- Open
-
- relates to
-
XWIKI-16218 Extra JARs only work for platform JARs
-
- Closed
-