title: Custom settings.xml in a Maven build on concourse.ci
body: <p>I'm building a <a href="https://concourse-ci.org" rel="nofollow noreferrer">concourse</a> pipeline for a Java/Maven project build.
  I have succeeded to set it up so that the maven build gets started.
  Unfortunately, my own internal Maven dependencies do not get resolved because there is no settings.xml file with the coordinates of our local Artifactory binary repository.</p>
  
  <p>I've seen this <a href="https://github.com/rjain-pivotal/PCF-demo" rel="nofollow noreferrer">sample project</a>, which seems to use custom settings.xml, but somehow that setting is commented out.</p>
  
  <p>Can I refer to a custom settings.xml that is located or passed into the Java/Maven build from outside? Which options do I have?</p>
  
  <p>Here is a list of options that came to my mind so far, but all them are suboptimal:</p>
  
  <ul>
  <li>Put Artifactory repository info into the pom.xml of the project (not portable, in my opinion)</li>
  <li>Build custom Docker image with 1 additional settings.xml file only and use it for the build (lots of efforts and the need to setup a private docker repo just to parameterize 1 setting?)</li>
  <li>Somehow mount the parent/host file system into the container that is used for the build (openjdk:8-jdk in my case) and refer to the settings.xml located in it as shown in the sample project example (how can I do that from concourse?)</li>
  </ul>