Solved Help with Maven

Discussion in 'Plugin Development' started by CactusComboPvP, Aug 1, 2016.

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

    CactusComboPvP

    So I am making a bukkit plugin, and I decided to use this lib:

    https://bukkit.org/threads/npclib-create-fake-players-1-7-9-till-1-8-3.340234/

    I did everything it says, I put the repository and the dependency and I shaded the plugin.
    When I export the plugin, and run the command it tells me the classes from the lib are not found.
    However, if I do put the JAR on my server it works. Isn't the whole point of shading just to not have to download the JAR in to your plugin folders?

    Here is my POM.xml file, what have I done wrong?

    http://pastebin.com/iqFwps9Z
     
  2. You haven't done anything wrong. The whole point of depencies are to use external jars which your plugin dependency . You will have to tell people who are using the plugin you are making that you need to download it.ยท

    @CactusComboPvP please mark the thread as solved with thread tools.
     
    Last edited: Aug 1, 2016
  3. Offline

    ArsenArsen

    You have to maven build it, and also do what @TheEnderCrafter9 said. Make the scope provided and tell people its required to install the plugin you depend on.
     
  4. Offline

    mythbusterma

    @TheEnderCrafter9 @ArsenArsen @CactusComboPvP

    You can still shade the Jar into your plugin. There are reasons not to, but it is a legitimate option.

    You need the shade plugin for Maven (I think this is included, though). Why are you changing where it's being shaded to? You really shouldn't do that.

    Your issue is most likely that.
     
Thread Status:
Not open for further replies.

Share This Page