Book Image

OpenShift Cookbook

By : Shekhar Gulati
Book Image

OpenShift Cookbook

By: Shekhar Gulati

Overview of this book

Table of Contents (19 chapters)
OpenShift Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Running OpenShift on a Virtual Machine
Index

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 7, JBoss AS7, and JBoss EAP).

Getting ready

To complete this recipe, you will need the jobstore application created in the Creating and deploying Java EE 6 applications using the JBoss EAP and PostgreSQL 9.2 cartridges recipe. Please refer to this recipe...