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

Installing the JAR file not present in the Maven central repository


OpenShift will download all the dependencies from the Maven central repositories specified in your pom.xml file. There are times when your application depends on the libraries that do not exist in any public Maven repository. In this recipe, you will learn how you can use the OpenShift action hooks to install a local JAR.

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 if you don't have a running OpenShift application.

How to do it…

Perform the following steps to install the JAR file not present in the configured Maven repositories:

  1. Open a new command-line terminal, and navigate to the directory where the jobstore application is located.

  2. Create a lib directory in the root of your application directory, and add your local JAR file here. To demonstrate this...