Haha! It's always the way that you post a question and then figure out the answer straight afterwards!
To update this the error was a genuine permissions issue. I told a small lie above I did once dabble in using Docker and Jenkins on this machine and that messed up the permissions in the .m2 directory and set some folders as being owned by root. I deleted .m2 and started again and I was able to sync dependencies once more. However I am still curious as to what I should be putting in my settings.xml as the last time I touched it was when I first started Jenkins plugin development and that was years ago. On Monday, 12 October 2020 at 12:05:57 UTC+1 Mez Pahlan wrote: > Hi everyone > > I'm getting the following error whilst trying to build a PR branch from a > contributor. They've bumped the parent POM version and minimum supported > Jenkins version and those changes look fine. However I can't download the > *new* artefacts from this PR which then causes some knock on issues in my > IDE. > > Could not transfer artifact org.jenkins-ci.main:jenkins-bom:pom:2.222.3 > from/to repo.jenkins-ci.org (https://repo.jenkins-ci.org/public/): > ~/.m2/repository/org/jenkins-ci/main/jenkins-bom/2.222.3/jenkins-bom-2.222.3.pom.part.lock > > (No such file or directory) > > I started to look at my Maven settings.xml just in case and realised I > added that about two years ago and it may be out of date. So to rule that > out can anyone share a link of what the settings.xml should contain. I > realise it is highly personal to the developer but I only use Maven for > Jenkins development if that helps? At the moment I've got: > > - <pluginGroups> > - <pluginGroup>org.jenkins-ci.tools</pluginGroup> > - <profiles> > - Defining the repositories and pluginRepositories > - Both pointing to https://repo.jenkins-ci.org > - <mirrors> > - A mirror for m.g.o-public ???? > - Pointing to https://repo.jenkins-ci.org > - <servers> > - My secrets for plugin publishing > > Does that seem sensible? If so I can troubleshoot elsewhere. Thanks. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/ce6535a3-2e5b-478b-9c3b-b9cf34ca894en%40googlegroups.com.
