Recently Maven build jobs running in Jenkins are failing with the below exception saying that they couldn\'t pull dependencies from Maven Central
I was using a clean install of Maven/Java on a Docker container.
For me, I had to cd $M2_HOME/conf and edit the settings.xml file there. Add the following block inside ...
cd $M2_HOME/conf
settings.xml
...
central-secure https://repo.maven.apache.org/maven2 central