nulldriver / maven-resource

Maven Repository Manager Concourse Resource
Apache License 2.0
22 stars 49 forks source link

Custom maven `settings.xml` #45

Closed narner90 closed 2 years ago

narner90 commented 2 years ago

I need a custom maven settings.xml file to properly access Google Artifact Registry, namely pre-emptive authentication:

<server>
      <id>artifact-registry</id>
      <configuration>
        <httpConfiguration>
          <get>
            <usePreemptive>true</usePreemptive>
          </get>
          <head>
            <usePreemptive>true</usePreemptive>
          </head>
          <put>
            <params>
              <property>
                <name>http.protocol.expect-continue</name>
                <value>false</value>
              </property>
            </params>
          </put>
        </httpConfiguration>
      </configuration>

I would then override the maven_config source parameter as such:

source:
    maven_config: "-s path/custom_settings.xml`

How can I supply this custom settings.xml file?