The first time you push your changes to the application gear, Maven will download all the dependencies and will store those dependencies in the
.m2 directory under your application gear home directory. After the first push, OpenShift will reuse all the dependencies in the
.m2 repository and will only download new dependencies. This saves build time and make application deployment faster. But, there are a few situations when you want to do a clean build. One situation can be when you want to download all the latest Maven dependencies. In this recipe, you will learn how you can inform OpenShift to perform a clean build.
This recipe will work with all the four supported Java cartridges (Apache Tomcat 6, Apache Tomcat ...