diff --git a/Jenkinsfile b/Jenkinsfile
index 897aef7e35d..2d83b798dc5 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -98,7 +98,7 @@ def mavenBuild(jdk, cmdline, mvnName) {
"MAVEN_OPTS=-Xms2g -Xmx4g -Djava.awt.headless=true"]) {
configFileProvider(
[configFile(fileId: 'oss-settings.xml', variable: 'GLOBAL_MVN_SETTINGS')]) {
- sh "mvn --no-transfer-progress -s $GLOBAL_MVN_SETTINGS -Dmaven.repo.local=.repository -Pci -V -B -e -Djetty.testtracker.log=true $cmdline -Dunix.socket.tmp=/tmp/unixsocket"
+ sh "mvn --no-transfer-progress -s $GLOBAL_MVN_SETTINGS -Pci -V -B -e -Djetty.testtracker.log=true $cmdline -Dunix.socket.tmp=/tmp/unixsocket"
}
}
}
diff --git a/demos/embedded/pom.xml b/demos/embedded/pom.xml
index a3abc6844bc..2ac46d1bf01 100644
--- a/demos/embedded/pom.xml
+++ b/demos/embedded/pom.xml
@@ -160,6 +160,9 @@
org.apache.maven.plugins
maven-surefire-plugin
+
+ ${settings.localRepository}
+
false