I'm pretty sure some Jenkins plugin is causing this. Using 2.164 :
I have a scripted pipeline build and the maven call is of this form:
withMaven(..., mavenSettingsFilePath: settings1.xml, ...) {
sh 'mvn -X --settings settings1.xml clean package'
}
(If I leave out the --settings, it does exactly the same thing)
The file settings1.xml has this in it to tell where to get maven dependencies. I printed it in the console log with a "sh 'cat settings1.xml' "
14:08:59 <mirrors>
14:08:59 <mirror>
14:08:59 <id>nexus</id>
14:08:59 <mirrorOf>!artifactory-snapshots,*</mirrorOf>
14:08:59 <name>artifactory mirrored central repos.</name>
14:08:59 <url>https://example.com/artifactory/OT-public/</url>
14:08:59 </mirror>
14:08:59 </mirrors>
These messages appear in the log (using -X). I've snipped the workspace path out AND verified that withMaven seems to have copied my settings1.xml file to a working folder.
14:09:00 [DEBUG] Reading global settings from /usr/local/apache-maven-3.3.9/conf/settings.xml
14:09:00 [DEBUG] Reading user settings from <..workspace..>@tmp/withMaven430960bf/settings.xml
<snip>
14:09:00 [INFO] Scanning for projects...
14:09:00 [DEBUG] Using transporter WagonTransporter with priority -1.0 for https://example.com/artifactory/maven-public/
14:09:00 [DEBUG] Using connector BasicRepositoryConnector with priority 0.0 for https://example.com/artifactory/maven-public/ with username=, password=***
14:09:00 [INFO] Downloading: https://example.com/artifactory/maven-public/org/springframework/boot/spring-boot-starter-parent/2.0.2.RELEASE/spring-boot-starter-parent-2.0.2.RELEASE.pom
All the logs show it loading things from "maven-public" which, you will note, is not the repository in my settings1.xml file.
Based on the message about the WagonTransporter, can someone suggest a plugin that may be overriding my settings1.xml configurations?
Thanks
-- Lee Meador
Sent from gmail. My real email address is lee AT
leemeador.com