3.2. Download and make Available the Maven Repository
The JBoss Web Framework Kit Maven repository is available to download from the Red Hat Customer Portal as a
.zip file. Once downloaded, you must extract the contents of the file and make it available for use by your preferred Maven management system: local file system, web server, Nexus Maven repository manager. The latter two systems host Maven repositories so making them accessible to multiple users and may require additional configuration as noted in the procedure below.
Procedure 3.1. Download and make Available the Maven Repository
- Log into the Red Hat Customer Portal at http://access.redhat.com.
- Locate the downloads for this release version of JBoss Web Framework Kit.
- Download the
.zipfile for the Red Hat JBoss Web Framework Kit Maven Repository. - Complete the appropriate steps for your Maven management system:
- For a local file system installation, extract the contents of the downloaded
.zipfile to the local file system location where you want to keep them. - For an Apache Web Server:
- Extract the contents of the downloaded
.zipfile to a web-accessible directory in the Apache Web Server, for example,/var/www/maven-repositories/. - In
/etc/httpd/conf.d/, create a new text file namedmaven-repositories.conf. This file will be used to enable read access and directory browsing of/var/www/maven-repositories/. - In the
maven-repositories.conffile, add the following:<Directory "/var/www/maven-repositories"> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> Alias /maven-repositories /var/www/maven-repositories
This grants access to the contents of/var/www/maven-repositories/and provides an alias for the Maven repository path. - Save and close the file.
- For a Nexus Maven Repository Manager:
- Extract the contents of the downloaded
.zipfile to a suitable location in the Nexus file system. - Start the Nexus Repository Manager
- Add the JBoss Web Framework Kit Maven repository as a hosted repository, pointing to the extracted
.zipfile contents. - Add the JBoss Web Framework Kit Maven hosted repository to the desired repository group to make it available for use.