From d9c9a8551d31849e00cd8e47dde6258f7fac769a Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Sat, 1 Apr 2017 22:10:35 +0200 Subject: [PATCH] [MNG-6202] Cannot pass nonProxyHosts to ITs making remote tests lock up when proxy rejects to proxy internal hosts Set default value 'localhost' of 'proxy.nonProxyHosts' and allow users to override if necessary. --- its/core-it-suite/pom.xml | 8 +++++--- its/core-it-suite/src/site/apt/index.apt.vm | 7 ++++--- .../src/test/resources-filtered/settings-remote.xml | 2 +- its/run-its.bat | 4 ++-- its/run-its.sh | 2 +- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/its/core-it-suite/pom.xml b/its/core-it-suite/pom.xml index bf03acefbe..8cfb3cb265 100644 --- a/its/core-it-suite/pom.xml +++ b/its/core-it-suite/pom.xml @@ -58,9 +58,10 @@ under the License. ITs that don't require to fork Maven can also be run from the IDE using the Maven projects from the workspace if the Maven dependencies are added to the test class path. - If you're behind a proxy, use the system properties proxy.host, proxy.port, proxy.user and proxy.pass to specify the - required proxy setup for the ITs. Alternatively, set the system property maven.it.central to a URL of a local - repository manager that proxies the required artifacts. + If you're behind a proxy, use the system properties proxy.host, proxy.port, proxy.user, proxy.pass and + proxy.nonProxyHosts to specify the required proxy setup for the ITs. Alternatively, set the system property + maven.it.central to a URL of a local repository manager (anonymous authentication only) that proxies the + required artifacts. --> @@ -78,6 +79,7 @@ under the License. none + localhost 1.6.1 9.0.4.v20130625 diff --git a/its/core-it-suite/src/site/apt/index.apt.vm b/its/core-it-suite/src/site/apt/index.apt.vm index cdbf9805f2..ce57d20ed0 100644 --- a/its/core-it-suite/src/site/apt/index.apt.vm +++ b/its/core-it-suite/src/site/apt/index.apt.vm @@ -59,9 +59,10 @@ mvn clean test -Prun-its -DmavenVersion=2.2.1 ITs that don't require to fork Maven can also be run from the IDE using the Maven projects from the workspace if the Maven dependencies are added to the test class path. - If you're behind a proxy, use the <<>>, <<>>, <<>> and <<>> system properties - to specify the required proxy setup for the ITs. Alternatively, set the <<>> system property to a URL of a local - repository manager that proxies the required artifacts. + If you're behind a proxy, use the system properties <<>>, <<>>, <<>>, <<>> + and <<>> to specify the required proxy setup for the ITs. Alternatively, set the system property + <<>> to a URL of a local repository manager (anonymous authentication only) that proxies the required + artifacts. * Results diff --git a/its/core-it-suite/src/test/resources-filtered/settings-remote.xml b/its/core-it-suite/src/test/resources-filtered/settings-remote.xml index 6cac11802c..d0d696e1f3 100644 --- a/its/core-it-suite/src/test/resources-filtered/settings-remote.xml +++ b/its/core-it-suite/src/test/resources-filtered/settings-remote.xml @@ -34,7 +34,7 @@ plugins/artifacts from test repos so use of these settings should be the excepti ${proxy.port} ${proxy.user} ${proxy.pass} - localhost + ${proxy.nonProxyHosts} diff --git a/its/run-its.bat b/its/run-its.bat index 8bb9faf3bb..7fbbbb39b7 100644 --- a/its/run-its.bat +++ b/its/run-its.bat @@ -19,8 +19,8 @@ @REM How JvZ runs the ITs from a clean slate if it would be on Windows -mvn clean install -Prun-its,embedded -Dmaven.repo.local=%cd%/repo +mvn clean install -Prun-its,embedded -Dmaven.repo.local=%cd%\repo @REM If behind a proxy try this.. -@REM mvn clean install -Prun-its,embedded -Dmaven.repo.local=%cd%/repo -Dproxy.active=true -Dproxy.type=http -Dproxy.host= -Dproxy.port= -Dproxy.user= -Dproxy.pass= +@REM mvn clean install -Prun-its,embedded -Dmaven.repo.local=%cd%\repo -Dproxy.host= -Dproxy.port= -Dproxy.user= -Dproxy.pass= -Dproxy.nonProxyHosts= diff --git a/its/run-its.sh b/its/run-its.sh index 76de23de12..d13fce614a 100755 --- a/its/run-its.sh +++ b/its/run-its.sh @@ -25,4 +25,4 @@ mvn clean install -Prun-its,embedded -Dmaven.repo.local=`pwd`/repo # If behind a proxy try this -# mvn clean install -Prun-its,embedded -Dmaven.repo.local=`pwd`/repo -Dproxy.active=true -Dproxy.type=http -Dproxy.host= -Dproxy.port= -Dproxy.user= -Dproxy.pass= +# mvn clean install -Prun-its,embedded -Dmaven.repo.local=`pwd`/repo -Dproxy.host= -Dproxy.port= -Dproxy.user= -Dproxy.pass= -Dproxy.nonProxyHosts=