1Add this to your pom.xml:
2<repositories>
3 <!-- This adds the Spigot Maven repository to the build -->
4 <repository>
5 <id>spigot-repo</id>
6 <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
7 </repository>
8</repositories>
9
10<dependencies>
11 <!--This adds the Spigot API artifact to the build -->
12 <dependency>
13 <groupId>org.spigotmc</groupId>
14 <artifactId>spigot-api</artifactId>
15 <version>1.16.5-R0.1-SNAPSHOT</version>
16 <scope>provided</scope>
17 </dependency>
18</dependencies>