If you are looking to deploy your compiled EAR (Enterprise Archive) file into OpenShift Cloud Environment then here's the step by step procedure
for deploying your own EAR that have already been compiled.
Here, delete src folder and pom.xml file and don't modify/delete anything in other folders/files.
1. Clone Your Application Repository Using GIT
First we have to download a copy of source code of your application into your machine(computer). As shown below, by using git command clone you can download your application source code.git clone <your source url> <destination directory>
Here, you can get your application source url from your OpenShift Application Console as shown below:
Try to run above clone command so that your application repository is copied into specified destination directory of your computer as shown in screenshot.
2. Delete Directories In Cloned Repository
Your cloned application repository structure look like this:Here, delete src folder and pom.xml file and don't modify/delete anything in other folders/files.