diff --git a/Jenkinsfile b/Jenkinsfile index 3467d80..3b19af3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -108,17 +108,18 @@ def getSha1() { } def mvn(args) { - // add node and maven tools to path before calling maven - def mvnHome = tool name: 'maven-3.6.1' - env.PATH = "${mvnHome}/bin:${env.PATH}" - sh "mvn ${args}" + withMaven( + maven: 'maven-3.6.1', + globalMavenSettingsConfig: 'locusworks-settings' + ) { + + sh "mvn ${args}" + + } } def mvn_initial(args) { - // add node and maven tools to path before calling maven - def mvnHome = tool name: 'maven-3.6.1' - env.PATH = "${mvnHome}/bin:${env.PATH}" - sh "mvn ${args}" + mvn(args) } def set_result(status) { diff --git a/pom.xml b/pom.xml index 4f76df7..890f233 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ ${project.basedir} 1.8 1.8 - http://nexus.locusworks.net + https://nexus.locusworks.net @@ -48,19 +48,6 @@ - - - nexus-proxy-public - ${nexus.repo}/repository/maven-public/ - - - - - nexus-proxy-public - ${nexus.repo}/repository/maven-public/ - - - nexus-snapshot @@ -72,4 +59,30 @@ + + + locusworks-public + locusworks-public + ${nexus.repo}/repository/locusworks-public/ + + true + + + true + + + + + + + locusworks-public + ${nexus.repo}/repository/locusworks-public/ + + true + + + true + + + \ No newline at end of file