Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
17.10.0
-
None
-
Unknown
-
Description
Problem
The extension.repositories.<id>.<property> properties of xwiki.properties (e.g. auth.user, http.headers.<name>, or any Maven resolver setting) are only applied to the repositories explicitly declared with extension.repositories = <id>:<type>:<url> (DefaultExtensionManagerConfiguration#setRepositoryProperties).
When no repository is declared, XWiki uses its default repositories (maven-xwiki, store.xwiki.com and extensions.xwiki.org), created by their own default sources (e.g. NexusXWikiOrgExtensionRepositorySource), which don't read these properties. So:
- a property such as extension.repositories.maven-xwiki.aether.connector.http.retryHandler.serviceUnavailable = 503 is silently ignored;
- to apply it, all the default repositories have to be redeclared (declaring a single repository disables all the defaults), which means duplicating their URLs and default properties in xwiki.properties, and keeping them up to date afterwards.
This was needed on xwiki.org to work around XCOMMONS-3919.
Proposal
Apply the extension.repositories.<id>.* properties to the default repositories too, when their id matches.
Attachments
Issue Links
- is related to
-
XCOMMONS-3919 Maven Central is queried before the configured extension repositories when resolving the BOM imports of an extension POM
-
- Open
-