Maven can't import CraftPlayer, Packets

Discussion in 'Spigot Plugin Development' started by HakanGaming, May 1, 2017.

  1. Hi, I made maven projects but I can't import packets. Please help me:

    My pom.xml;

    Code (Text):
    <?xml version="1.0" encoding="UTF-8"?>
    <project xmlns=""


        <!-- Repositories -->
        <!-- Dependencies -->
            <!-- Spigot 1.8.8-R0.1-SNAPSHOT -->
        <!-- Build -->
            <defaultGoal>clean install</defaultGoal>
  2. NathanWolf


    That's because you're only including the API, you'll need all of spigot to get NMS classes. You'll also need to add spigot to your local Maven repo then, though running BuildTools on your dev machine should be enough to make that happen.
  3. How to I can add spigot to my local maven repo? (I'm new in maven :/)
  4. Run BuildTools. That will install it into local maven repo.