---
apiVersion: v1
kind: ConfigMap
metadata:
  name: maven-settings-configmap
data:
  settings.xml: |
    <?xml version="1.0" encoding="utf-8"?>
    <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
        <servers>
            <server>
                <id>nexus-public</id>
                <username>developer</username>
                <password>developer</password>
            </server>
            <server>
                <id>nexus-release</id>
                <username>developer</username>
                <password>developer</password>
            </server>
            <server>
                <id>nexus-snapshot</id>
                <username>developer</username>
                <password>developer</password>
            </server>
        </servers>
        <mirrors>
            <mirror>
                <name>nexus-public</name>
                <id>nexus-public</id>
                <mirrorOf>*</mirrorOf>
                <url>http://nexus.example.com/repository/maven-public/</url>
            </mirror>
        </mirrors>
    </settings>
