From b2104eb3259f4436f22230b51e7fc0440b40b80f Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Sun, 18 Feb 2024 17:33:52 +0100 Subject: [PATCH] Fix build on JDK 21, use default Maven matrix on Jenkins --- Jenkinsfile | 2 +- src/it/resources/it-parent/pom.xml | 2 +- .../supplemental-artifact/resource-projects/pom.xml | 2 +- .../plugin/resources/remote/it/support/TestUtils.java | 7 ------- 4 files changed, 3 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3bbf2db..e9f05f7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,4 +17,4 @@ * under the License. */ -asfMavenTlpPlgnBuild(maven: ['3.6.x','3.8.x']) +asfMavenTlpPlgnBuild() diff --git a/src/it/resources/it-parent/pom.xml b/src/it/resources/it-parent/pom.xml index e872d72..59bc111 100644 --- a/src/it/resources/it-parent/pom.xml +++ b/src/it/resources/it-parent/pom.xml @@ -66,7 +66,7 @@ under the License. maven-compiler-plugin - 3.8.0 + ${version.maven-compiler-plugin} diff --git a/src/it/resources/supplemental-artifact/resource-projects/pom.xml b/src/it/resources/supplemental-artifact/resource-projects/pom.xml index 5abda97..00de4e6 100644 --- a/src/it/resources/supplemental-artifact/resource-projects/pom.xml +++ b/src/it/resources/supplemental-artifact/resource-projects/pom.xml @@ -34,7 +34,7 @@ under the License. maven-compiler-plugin - 3.8.0 + ${version.maven-compiler-plugin} diff --git a/src/test/java/org/apache/maven/plugin/resources/remote/it/support/TestUtils.java b/src/test/java/org/apache/maven/plugin/resources/remote/it/support/TestUtils.java index 3cae087..9772700 100644 --- a/src/test/java/org/apache/maven/plugin/resources/remote/it/support/TestUtils.java +++ b/src/test/java/org/apache/maven/plugin/resources/remote/it/support/TestUtils.java @@ -51,13 +51,6 @@ public static File getBaseDir() { public static Verifier newVerifier(File dir) throws VerificationException { Verifier verifier = new Verifier(dir.getAbsolutePath()); verifier.setLocalRepo(System.getProperty("localRepositoryPath")); - verifier.getSystemProperties().setProperty("https.protocols", System.getProperty("https.protocols", "TLSv1.2")); - - int javaVersion = Integer.getInteger("java.specification.version", 7); - if (javaVersion >= 12) { - verifier.setSystemProperty("maven.compiler.source", "7"); - verifier.setSystemProperty("maven.compiler.target", "7"); - } return verifier; } }