Solved Packaging Third Party Resources into Plugin

Discussion in 'Plugin Development' started by Iron_Crystal, Jun 12, 2014.

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

    Iron_Crystal

    Hello,

    I asked this in another thread similar to the topic, but it was a post and no-one probably saw it.

    I am trying to use apache commons.io in my plugin. I added it to my build path just like I do with Bukkit and the program compiles just fine. The issue is when running it on the server, it can't find the commons.io resource I depend on.

    Here are pictures of my directories and my exporting options. Can anyone help me figure out why it isn't finding the resource?

    [​IMG]

    [​IMG]

    Any suggestions?
     
  2. Offline

    deltahat

    You need build your plugin with Apache Maven and then use the Maven Shade plugin to compile commons.io into your plugin at build time.

    There are dozens of tutorials online for using Maven and Shade with bukkit.
     
    Garris0n likes this.
  3. Offline

    drtshock

    You are only depending on the lib, not 'shading'/including it.
     
  4. Offline

    Iron_Crystal

Thread Status:
Not open for further replies.

Share This Page