I tried to create Maven settings (settings.xml) as Config Map at OpenShift webConsole,but I got YAML file error.
Error message:
Error parsing YAML: YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key at line 20, column 1:
YAML file:
apiVersion: v1
kind: ConfigMap
metadata:
name: maven-settings
namespace: sample-project
data:
settings.xml: >
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0
http://maven.apache.org/xsd/settings-1.1.0.xsd">
<servers>
<server>
<id>nexus-snapshots</id>
<username>admin</username>
<password>password</password>
</server>