Use the fabric8 plugin to add a custom deployment config and config map as part of the deployment to OpenShift.
The YAML fragments are wrong, and are causing issues when deployed. The "Zero Config" option with fabric8 works well.