Fix tests on JDK 1.7 - setup TLS protocol for verifier

This commit is contained in:
Slawomir Jaranowski 2022-04-07 21:02:08 +02:00
parent 66cd7b58fb
commit 98af9777d6
5 changed files with 12 additions and 3 deletions

View File

@ -17,7 +17,7 @@
<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0</version>
<version>1.4.1</version>
<executions>
<execution>
<inherited>false</inherited>

View File

@ -17,7 +17,7 @@
<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0</version>
<version>1.4.1</version>
<executions>
<execution>
<inherited>false</inherited>

View File

@ -17,7 +17,7 @@
<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0</version>
<version>1.4.1</version>
<executions>
<execution>
<inherited>false</inherited>

View File

@ -600,6 +600,12 @@ public abstract class AbstractMavenIntegrationTestCase
try
{
// Java7 TLS protocol
if ( VersionRange.createFromVersionSpec( "(,1.8.0)" ).containsVersion( getJavaVersion() ) )
{
verifier.getCliOptions().add( "-Dhttps.protocols=TLSv1.2" );
}
// auto set source+target to lowest reasonable java version
// Java9 requires at least 1.6
if ( VersionRange.createFromVersionSpec( "[9,12)" ).containsVersion( getJavaVersion() ) )

View File

@ -22,6 +22,9 @@
# How I run the ITs from a clean slate. Though I do this with a primed Nexus instance. JvZ.
# build maven core using -PversionlessMavenDist
# For Jdk 7 use with -Dhttps.protocols=TLSv1.2
# mvn clean install -Prun-its,embedded -Dmaven.repo.local=`pwd`/repo -Dhttps.protocols=TLSv1.2
mvn clean install -Prun-its,embedded -Dmaven.repo.local=`pwd`/repo
# If behind a proxy try this