O'Reilly logo

OpenShift Cookbook by Shekhar Gulati

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Forcing a clean Maven build

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.

Note

This recipe will work with all the four supported Java cartridges (Apache Tomcat 6, Apache Tomcat ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required