If your OpenShift app has dependencies on other Jars that are not publicly available in the usual maven repos (for example, other Jars from your own projects), you can push them to your remote Maven repo used when your app builds remotely.
Commit the jar in the root of your OpenShift project.
Edit .openshift/action_hooks/pre_build and add the following, updating Jar name etc:
mvn install:install-file --debug -Dfile=../../YourProjectName/runtime/repo/YourJarName.jar -DgeneratePom=true -DartifactId=YourArtifactName -Dversion=0.0.1-SNAPSHOT -DgroupId=your.group.id -Dpackaging=jar
Commit your changes and push to OpenShift – the jar will get installed to your remote repo, and now you can add a Maven dependency against it in your project’s pom.xml.