This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-2adff26b-bb3f-4575-b095-10777df88322 XWIKI-25650 Open

The artifact resolver of the Docker test framework does not use the proxy configured for the JVM

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-c1220399-f25f-4533-ac0d-dfea4cc535dc Michael Hamann created this issue on 04/Nov/26 14:32
 
Summary: The artifact resolver of the Docker test framework does not use the proxy configured for the JVM
Issue Type: cid:jira-generated-image-avatar-2adff26b-bb3f-4575-b095-10777df88322 Improvement
Affects Versions: 17.10.14
Assignee: Unassigned
Components: Test Framework
Created: 04/Nov/26 14:32
Priority: cid:jira-generated-image-static-major-309d7f04-555f-43c0-badb-caffc6c609d2 Major
Reporter: Michael Hamann
Description:

The Docker-based functional test framework resolves the artifacts of the tested XWiki instance (the WAR dependencies and the extensions to install) with its own Maven Resolver session, in RepositoryResolver. That session has no proxy configured, so the artifacts are always downloaded without a proxy, even when the JVM running the tests is configured to use one (with the https.proxyHost, https.proxyPort and http.nonProxyHosts system properties, e.g. through JAVA_TOOL_OPTIONS).

When the remote Maven repositories can only be reached through a proxy, the functional tests fail during the setup as soon as an artifact (or a newer SNAPSHOT build listed in the local metadata) is missing from the local repository, while Maven itself downloads it fine:

Could not transfer artifact org.xwiki.platform:xwiki-platform-notifications-filters-default:pom:18.10.0-20261030.203932-42 from/to xwiki-snapshots (https://nexus-snapshots.xwiki.org/repository/snapshots/): nexus-snapshots.xwiki.org
Caused by: java.net.UnknownHostException: nexus-snapshots.xwiki.org

The resolver should use the proxy configured for the JVM, which Maven Resolver supports with its JreProxySelector.

 
 

2 updates

 
cid:jira-generated-image-avatar-c1220399-f25f-4533-ac0d-dfea4cc535dc Changes by Michael Hamann on 04/Nov/26 14:32
 
Fix Version: 18.10.0-rc-1
Assignee: Michael Hamann