External Jars with IntelliJ IDEA

Discussion in 'Plugin Development' started by Ricecutter0, Dec 30, 2016.

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



    The issue I have is creating my own dependency. I have this plugin named Backpacks, and I have another plugin which is a library. I would like to have Backpacks depend on the library. I cannot figure out how to use Maven to create that dependency. Any help would greatly be appreciated. If you need me to explain future I will gladly do so.
    Thank you for reading.
  2. Offline


    If I understood right, you need to add the following line to your plugin.yml file:
    depend: [YOUR_LIB_NAME_HERE]
    And if you want to add more plugins, seperate them with a comma.
    Sorry for my bad English
  3. Offline


    Sorry if i didn't phrase that correctly. I meant to say that I want to make an external jar accessible using Maven. An example is that you can make Bukkit accessible within a plugin, but I want to make one of my own plugins accessible within my own plugin.
  4. Offline

    I Al Istannen

    Go into the library project and run "mvn install". Then you can add it as a normal dependency in the pom.xml of the other plugin.
    If your plugin has the group id "me.ialistannen" and the artifact id "Library" and the version "1.0", then writing
    should be alright.

    If your library is on github, you can use a service like jitpack.io to add it to any plugin without needing to use "mvn install" on the computer first.
Thread Status:
Not open for further replies.

Share This Page