9.3. Add a Profile to Your Project
To enable the JBoss Maven repository for your project, add a profile to your
settings.xml
file in $HOME/.m2/settings.xml
as follows:
Example 9.1. Adding a Profile
Enable the profile by ensuring the following is included in the
settings.xml
file:
Example 9.2. Enable the Profile
<activeProfiles> <!-- Optionally, make the repositories active by default --> <activeProfile>jboss-ga-repository</activeProfile> <activeProfile>jboss-earlyaccess-repository</activeProfile> </activeProfiles>
<activeProfiles>
<!-- Optionally, make the repositories active by default -->
<activeProfile>jboss-ga-repository</activeProfile>
<activeProfile>jboss-earlyaccess-repository</activeProfile>
</activeProfiles>
If you are using a build system that does not support declarative dependency management, add the contents of the
client/java/
directory, included in the Red Hat JBoss Data Grid package to the build classpath.