[id='mvn_settings']
= Adding {RedHat} Maven Repositories
Configure your Maven settings file, typically `~/.m2/settings.xml`, to include the {RedHat} GA and Early Access repositories.
Instead of configuring your Maven settings file, you can include the repositories directly in your project `pom.xml` file.

.{RedHat} GA repository

[source,xml,options="nowrap",subs=attributes+]
----
<repositories>
  <repository>
    <id>redhat-ga</id>
    <name>{RedHat} GA Repository</name>
    <url>https://maven.repository.redhat.com/ga/</url>
  </repository>
</repositories>
<pluginRepositories>
  <pluginRepository>
    <id>redhat-ga</id>
    <name>{RedHat} GA Repository</name>
    <url>https://maven.repository.redhat.com/ga/</url>
  </pluginRepository>
</pluginRepositories>
----

.{RedHat} Early Access repository

[source,xml,options="nowrap",subs=attributes+]
----
<repositories>
  <repository>
    <id>redhat-earlyaccess</id>
    <name>{RedHat} Early Access Repository</name>
    <url>https://maven.repository.redhat.com/earlyaccess/all/</url>
  </repository>
</repositories>
<pluginRepositories>
  <pluginRepository>
    <id>redhat-earlyaccess</id>
    <name>{RedHat} Early Access Repository</name>
    <url>https://maven.repository.redhat.com/earlyaccess/all/</url>
  </pluginRepository>
</pluginRepositories>
----

.Reference

* link:https://access.redhat.com/maven-repository[{RedHat} Enterprise Maven Repository]
