[id='adding-maven-repository_{context}']
= Adding {RedHat} Maven repositories
Include the {RedHat} GA repository in your Maven build environment to get {brandname} artifacts and dependencies.

.Procedure

* Add the {RedHat} GA repository to your Maven settings file, typically `~/.m2/settings.xml`, or directly in the `pom.xml` file of your project.
+
[source,xml,options="nowrap",subs=attributes+]
----
<repositories>
  <repository>
    <id>redhat-ga-repository</id>
    <name>{RedHat} GA Repository</name>
    <url>https://maven.repository.redhat.com/ga/</url>
  </repository>
</repositories>
<pluginRepositories>
  <pluginRepository>
    <id>redhat-ga-repository</id>
    <name>{RedHat} GA Repository</name>
    <url>https://maven.repository.redhat.com/ga/</url>
  </pluginRepository>
</pluginRepositories>
----

.Reference

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