Spigot Maven

Jan 9, 2022
Spigot Maven
  • Spigot Maven Repository

    Information on what to add to your pom.xml to access the Spigot API

    Maven Repository(top)

    SpigotMC has a Maven repository which can be used by plugin developers to add Spigot API to their build system.

    The SpigotMC Maven repository provides two artifacts relevant to Spigot plugin development, the Bukkit API and the Spigot API. Developers unsure of which artifact to include should default to using the Spigot API. Most, if not all, uses for the Bukkit API artifact are covered by the Spigot API artifact. Note that this repository does not provide the implementation artifacts. Developers wishing to use internal, version-dependent code (e.g. CraftBukkit or NMS classes) must run BuildTools to install those artifacts to their local Maven repository.


    In order to access the Spigot API using Maven, developers need to add both of the following to the pom.xml: 1) the Spigot Maven repository and 2) the Spigot API artifact. These additions are excerpted in the following code snippet:
    Code (XML):
        <!-- This adds the Spigot Maven repository to the build -->

        <!--This adds the Spigot API artifact to the build -->


    You can find more about the Spigot repositories for Gradle here.
  • Loading...
  • Loading...