btw. in the current state of things the best thing would be if when the pom.xml is being used on openshift side that could be detected somehow and used as a way to enable the proper profile in which you can do the proper "deployment dependent" switches.
This doesn't solve the problem of direct binary deployment from eclipse tooling, but its the best scalable approach I can forsee right now.