Craftbukkit not importing w/ maven?

Discussion in 'Plugin Development' started by Axanite, Dec 9, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    Axanite

    Hi there, I'm trying to make a plugin using maven and I need to use Craftbukkit (as far as i know) to get access to NMS. After hours of searching around I figured out how to add local dependencies but it's not allowing me to import things from CraftBukkit? I've tried many versions of CraftBukkit and different ways of importing but it's not allowing it for some reason. Any help will be greatly appreciated.
     
  2. Online

    timtower Administrator Administrator Moderator

    @Axanite Did you type the imports yourself?
     
  3. Offline

    Axanite

    Nope, I'm just trying to import things from variables.. e.g. MinecraftServer & CraftServer..
     
  4. Online

    timtower Administrator Administrator Moderator

    @Axanite Try to type the full package and classname for the type, see if your IDE knows it at all.
     
  5. Offline

    Axanite

    Nope, it's not picking it up. Picking up org.bukkit but as soon as I type craftbukkit it shows nothing
     
  6. Online

    timtower Administrator Administrator Moderator

    That is because it is net.minecraft.server
     
  7. Offline

    Axanite

    Ah right I forgot... still doesn't work tho ;/
     
  8. Online

    timtower Administrator Administrator Moderator

    @Axanite Please post a screenshot of your build path.
     
  9. Offline

    Axanite

    Going to sound stupid but is that the dependencies? thats all im finding when i look up where to find it... :eek:
     
  10. Online

    timtower Administrator Administrator Moderator

    It is
     
  11. Offline

    Axanite

    [​IMG]

    @timtower

    Ah I see, thank you for your help anyway. :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Dec 16, 2017
  12. Online

    timtower Administrator Administrator Moderator

    @Axanite I work without maven so can't help with this.
     
  13. Offline

    Axanite

Thread Status:
Not open for further replies.

Share This Page