2.4. Upgrade the Maven Repository

2.4.1. Apply a Patch to the Local Maven Repository

Summary

A Maven repository stores Java libraries, plug-ins, and other artifacts required to build and deploy applications to JBoss EAP. The JBoss EAP repository is available online or as a downloaded ZIP file. If you use the publicly hosted repository, updates are applied automatically for you. However, if you download and install the Maven repository locally, you are responsible for applying any updates. Whenever a patch is available for JBoss EAP, a corresponding patch is provided for the JBoss EAP Maven repository. This patch is available in the form of an incremental ZIP file that is unzipped into the existing local repository. The ZIP file contains new JAR and POM files. It does not overwrite any existing JARs nor does it remove JARs, so there is no rollback requirement.

For more information about the JBoss EAP patching process, see the chapter entitled Patching and Upgrading JBoss EAP 6 in the Administration and Configuration Guide for JBoss Enterprise Application Platform 6 located on the Customer Portal at https://access.redhat.com/site/documentation/JBoss_Enterprise_Apnplication_Platform/.
This task describes how to apply Maven updates to your locally installed Maven repository using the unzip command.

Prerequisites

  • Valid access and subscription to the Red Hat Customer Portal.
  • The Red Hat JBoss Enterprise Application Platform 6.3.0 Maven Repository ZIP file, downloaded and installed locally.

Procedure 2.10. Update the Maven Repository

  1. Open a browser and log into https://access.redhat.com.
  2. Select Downloads from the menu at the top of the page.
  3. Find Red Hat JBoss Middleware and click the Download Software button.
  4. Select Application Platform from the Product drop-down menu that appears on the next screen.
  5. Select the correct version of JBoss EAP from the Version drop-down menu that appears on this screen, then click on Patches.
  6. Find Red Hat JBoss Enterprise Application Platform 6.2 CPx Incremental Maven Repository in the list and click Download.
  7. You are prompted to save the ZIP file to a directory of your choice. Choose a directory and save the file.
  8. Locate the path to JBoss EAP Maven repository, referred to in the commands below as EAP_MAVEN_REPOSITORY_PATH, for your operating system. For more information about how to install the Maven repository on the local file system, see Section 2.2.3, “Install the JBoss EAP 6 Maven Repository Locally”.
  9. Unzip the Maven patch file directly into the installation directory of the JBoss EAP 6.2.x Maven repository.
    • For Linux, open a terminal and type the following command:
      [standalone@localhost:9999 /] unzip -o jboss-eap-6.2.x-incremental-maven-repository.zip -d EAP_MAVEN_REPOSITORY_PATH
    • For Windows, use the Windows extraction utility to extract the ZIP file into the root of the EAP_MAVEN_REPOSITORY_PATH directory.
Result

The locally installed Maven repository is updated with the latest patch.