이 콘텐츠는 선택한 언어로 제공되지 않습니다.
3.4. Configure the Maven Repository
To configure the installed Red Hat JBoss Data Grid Maven repository, edit the
settings.xml file. This file may be configured in one of two locations:
- User level - Maven user settings are located in the
${user.home}/.m2/directory:- For Linux or Mac environments this is typically
~/.m2/ - For Windows environments this is typically
\Documents and Settings\.m2\or\Users\.m2\
- Global level - Settings for all users on a machine, assuming they are all using the same Maven installation, is typically provided in
${maven.home}/conf/settings.xml
See Section B.2, “Maven Repository Configuration Example” to view sample Maven configurations, and refer to the Maven Documentation for more information about configuring Maven.
3.4.1. Configuring the JBoss Data Grid Maven Repository in an Offline Environment 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
In certain environments it is preferred to have the Maven repository available offline. To accomplish this configuration perform the following steps:
Prerequisites:
- The JBoss Data Grid Maven repository has been downloaded to the internal network where it will be referenced.
- An internal repository, such as Sonatype Nexus or Apache Archiva, is available on the network that contains Maven dependencies.
Procedure 3.2. Configure the JBoss Data Grid Maven Repository for Offline Usage
- Install the downloaded JBoss Data Grid Maven repository locally, following the instructions in Section 3.3.1, “Local File System Repository Installation”.
- Update the
settings.xmlto point to the locally extracted repository, as seen in Section 3.4, “Configure the Maven Repository”. A sample configuration is shown below:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Ensure that projects may now be built locally.
3.4.2. Next Steps 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
After the newest available version of Red Hat JBoss Data Grid is installed and Maven is set up and configured, see Section 9.1, “Create a New Red Hat JBoss Data Grid Project” to learn how to use JBoss Data Grid for the first time.