NMS Maven dependency

Discussion in 'Spigot Plugin Development' started by Bant, Jun 30, 2015.

  1. I'm new to maven and not sure how to add craftbukkit.jar as a local maven dependency to the pom.xml of my Maven project.

    I'm using IntelliJ IDEA.

    HTML:
           <!--Fanciful API-->
            <dependency>
                <groupId>mkremins</groupId>
                <artifactId>fanciful</artifactId>
                <version>0.3.1</version>
            </dependency>

            <!--Spigot-API-->
            <dependency>
                <groupId>org.spigotmc</groupId>
                <artifactId>spigot-api</artifactId>
                <version>1.8.7-R0.1-SNAPSHOT</version>
            </dependency>

            <!--Bukkit API-->
            <dependency>
                <groupId>org.bukkit</groupId>
                <artifactId>bukkit</artifactId>
                <version>1.8.7-R0.1-SNAPSHOT</version>
            </dependency>

            <!--Vault API-->
            <dependency>
                <groupId>net.milkbowl.vault</groupId>
                <artifactId>VaultAPI</artifactId>
                <version>1.5</version>
            </dependency>
    Here are the dependencies I've already got (i haven't pasted in the full pom.xml to save space).

    Thanks
     
    • Like Like x 1
    • Like Like x 2
  2. @_Cory_ Thanks, seeing your pom.xml really helped!
     
    • Friendly Friendly x 2