title: Finding Maven settings.xml in an Ant build from Jenkins
body: <p>I am new in Jenkins. I configured a job, which gets the source from SVN, then calls an Ant build file. Inside the And build, there is a Maven call, done by the Maven Ant Tasks plugin. Additionally I have a changed settings.xml for maven, where I have configured a repository other than the default maven central repo. If I call the Ant build from the command line, it works fine. It finds the correct settings.xml at my user home (.m2/settings.xml). But the same script doesn't work from Jenkins. The log shows that it tries to get things from the maven central repo, so not my custom settings.xml is used.
  I created a .m2 directory with my custom settings.xml to several places, but it still doesn't find it. Also I have added the Config File Provider Plugin to Jenkins and added my custom settings.xml.
  How should I get this working?</p>
  
  <p>Thanks!</p>