Include jar file within plugin

Discussion in 'Plugin Development' started by Nogtail, Feb 22, 2014.

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

    Nogtail

    For example if I wanted to use Apache Commons in my plugin how would I "include" it instead of using it as an external dependency?

    I am using Eclipse as my IDE but it would also help to know how to do this with IntelliJ IDEA.

    I do not want to use Maven but if you know of a good tutorial for Maven please link it :)

    Thanks :)
     
  2. Offline

    xTrollxDudex

    Nogtail
    Yeah, maven would be really, really nice with this :p

    Add source files to your jar. Make sure that they aren't already packaged with CraftBukkit.
     
  3. Offline

    Nogtail

    How would I add something such as https://github.com/xetorthio/jedis which only comes in a jar file? Is there a way of inserting another git in a project?
     
  4. Offline

    xTrollxDudex

    Nogtail
    Isn't there a download sources as ZIP on the right side?
     
  5. Offline

    alex123099

    Nogtail
    You could always use JD - java decompiler and then copy paste the sources
     
Thread Status:
Not open for further replies.

Share This Page