Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ def mavenBuild(jdk, extraArgs) {
withEnv(["JAVA_HOME=${tool "$jdk"}",
"PATH+MAVEN=${ tool "$jdk" }/bin:${tool "maven_3_latest"}/bin",
"MAVEN_OPTS=-Xms4G -Xmx4G -Djava.awt.headless=true"]) {
sh "mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.3.2:wrapper -Dmaven=3.9.9"
sh "rm -f ~/.m2/extensions.xml"
sh "cp .github/ci-extensions.xml .mvn/extensions.xml"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sh "cp .github/ci-extensions.xml .mvn/extensions.xml"
sh "cp .github/ci-extensions.xml ~/.m2/extensions.xml"

sh "mvn --errors --batch-mode --show-version org.apache.maven.plugins:maven-wrapper-plugin:3.3.2:wrapper -Dmaven=4.0.0-rc-3"
sh "./mvnw clean install -B -U -e -DskipTests -PversionlessMavenDist -V -DdistributionTargetDir=${env.WORKSPACE}/.apache-maven-master"
// we use two steps so that we can cache artifacts downloaded from Maven Central repository
// without installing any local artifacts to not pollute the cache
Expand Down