Red Hat Training

A Red Hat training course is available for Red Hat JBoss Enterprise Application Platform

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 Installation Guide for JBoss Enterprise Application Platform 6 located on the Customer Portal at https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/?version=6.4.
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 <VERSION> Maven Repository ZIP file, downloaded and installed locally.

Procedure 2.11. 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 Enterprise Application Platform in the list and click on it.
  4. Select the correct version of JBoss EAP from the Version drop-down menu that appears on this screen, then click on Patches.
  5. Find Red Hat JBoss Enterprise Application Platform <VERSION> CPx Incremental Maven Repository in the list and click Download.
  6. You are prompted to save the ZIP file to a directory of your choice. Choose a directory and save the file.
  7. 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”.
  8. Unzip the Maven patch file directly into the installation directory of the JBoss EAP <VERSION>.x Maven repository.
    • For Linux, open a terminal and type the following command:
      [standalone@localhost:9999 /] unzip -o jboss-eap-<VERSION>.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.