You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2022/04/07 19:03:34 UTC

[maven-integration-testing] branch maven-3.8.x-fix-its-jdk1.7 created (now c956912f1)

This is an automated email from the ASF dual-hosted git repository.

sjaranowski pushed a change to branch maven-3.8.x-fix-its-jdk1.7
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git


      at c956912f1 Fix tests on JDK 1.7 - setup TLS protocol for verifier

This branch includes the following new commits:

     new c956912f1 Fix tests on JDK 1.7 - setup TLS protocol for verifier

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-integration-testing] 01/01: Fix tests on JDK 1.7 - setup TLS protocol for verifier

Posted by sj...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sjaranowski pushed a commit to branch maven-3.8.x-fix-its-jdk1.7
in repository https://gitbox.apache.org/repos/asf/maven-integration-testing.git

commit c956912f1b0a813f9f3c30543647268f3fdc673c
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Thu Apr 7 21:02:08 2022 +0200

    Fix tests on JDK 1.7 - setup TLS protocol for verifier
---
 .../java/org/apache/maven/it/AbstractMavenIntegrationTestCase.java  | 6 ++++++
 run-its.sh                                                          | 3 +++
 2 files changed, 9 insertions(+)

diff --git a/core-it-support/maven-it-helper/src/main/java/org/apache/maven/it/AbstractMavenIntegrationTestCase.java b/core-it-support/maven-it-helper/src/main/java/org/apache/maven/it/AbstractMavenIntegrationTestCase.java
index a30b07b80..672a14ac4 100644
--- a/core-it-support/maven-it-helper/src/main/java/org/apache/maven/it/AbstractMavenIntegrationTestCase.java
+++ b/core-it-support/maven-it-helper/src/main/java/org/apache/maven/it/AbstractMavenIntegrationTestCase.java
@@ -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() ) )
diff --git a/run-its.sh b/run-its.sh
index 0a6bf6672..c438cbb5b 100755
--- a/run-its.sh
+++ b/run-its.sh
@@ -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