Timeout deploying JBoss applications

Code: 
KB-E1037
Issue: 

There is an error message in log file while deploying JBoss application

ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015052: Did not receive a response to the deployment operation within the allowed timeout period [60 seconds]. Check the server configuration file and the server logs to find more about the status of the deployment.

Resolution: 

In the local Git repository of the application locate file ".openshift/config/standalone.xml" and open it in an editor.

Look up this section

<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.0">
     <deployment-scanner scan-interval="5000" relative-to="jboss.server.base.dir" path="deployments"  />
</subsystem>

and add "deployment-timeout" attribute to the "deployment-scanner" tag with big enough number. E.g.

<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.0">
     <deployment-scanner scan-interval="5000" relative-to="jboss.server.base.dir" path="deployments" deployment-timeout="1200" />
</subsystem>