diff --git a/Jenkinsfile b/Jenkinsfile index cc3cc2a4c1e..ac74d2c597d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -66,15 +66,8 @@ pipeline { steps { xvnc(useXauthority: true) { sh """ - jdkEnvVar='JAVA_${javaVersion()}_HOME' - if [ "${JAVA_HOME}" = "\${JAVA_${javaVersion()}_HOME}" ]; then - # Workaround for https://github.com/apache/maven-toolchains-plugin/pull/148 - # clear the structured variable and require JAVA_HOME instead - export JAVA_${javaVersion()}_HOME='' - jdkEnvVar='JAVA_HOME' - fi ./full-build.sh --tp=${params.TARGET_PLATFORM} \ - -Pstrict-jdk-${javaVersion()} -Dtoolchain.jdk.env=\${jdkEnvVar} + -Pstrict-jdk-${javaVersion()} -Dtoolchain.jdk.env=JAVA_${javaVersion()}_HOME """ } }// END steps diff --git a/pom.xml b/pom.xml index ea92486704a..d51ee09459c 100644 --- a/pom.xml +++ b/pom.xml @@ -461,7 +461,7 @@ org.apache.maven.plugins maven-toolchains-plugin - 3.2.0 + 3.3.0 org.apache.maven.plugins