> For the complete documentation index, see [llms.txt](https://docs.gravemc.net/moderndisguise/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gravemc.net/moderndisguise/adding/maven.md).

# Maven 📕

## Adding to the POM

Add this repository to your repositories:

```xml
<repository>
    <id>gravemc-repo</id>
    <url>https://repo.gravemc.net/releases/</url>
</repository>
```

and then add this dependency:

```xml
<dependency>
    <groupId>dev.iiahmed</groupId>
    <artifactId>ModernDisguise</artifactId>
    <version>3.0</version>
    <scope>compile</scope>
</dependency>
```

Make sure you have the maven shade plugin in order for it to be included in your jar file.

## Shading & Relocating

You can relocate the package as well, here's an example maven-shade-plugin config:

```xml
<configuration>
    <filters>
        <filter>
            <artifact>*:*</artifact>
            <excludes>
                <exclude>META-INF/</exclude>
            </excludes>
        </filter>
    </filters>
    <relocations>
        <relocation>
            <pattern>dev.iiahmed.disguise</pattern>
            <shadedPattern>your.own.package.disguise</shadedPattern>
        </relocation>
    </relocations>
</configuration>
```
