Solved Importing BungeeCord-API into Maven.

Discussion in 'BungeeCord Plugin Development' started by Experminator, May 17, 2016.

Thread Status:
Not open for further replies.
  1. Hello Spigot'eers,

    I want to import the BungeeCord API in my Maven project, but how can I import it?
    My current pom.xml only supports bungeecord-chat and bungeecord-parent, which gives an error at compile time, because of non existency.

    Code (Text):
    <?xml version="1.0" encoding="UTF-8"?>
    <project xmlns=""





    Code (Text):
    "C:\Program Files\Java\jdk1.8.0_92\jre\bin\java" "-Dmaven.home=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.1.2\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.1.2\plugins\maven\lib\maven3\bin\m2.conf" -Didea.launcher.port=7534 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.1.2\bin" -classpath "C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.1.2\lib\idea_rt.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 2016.1.2\lib\util.jar" -Dfile.encoding=UTF-8 com.intellij.rt.execution.CommandLineWrapper C:\Users\Administrator\AppData\Local\Temp\classpath com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=2016.1.2 clean install
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Store 0.0.1-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 5.907s
    [INFO] Finished at: Tue May 17 18:17:58 CEST 2016
    [INFO] Final Memory: 10M/119M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal on project Store: Could not resolve dependencies for project com.breachuniverse:Store:jar:0.0.1-SNAPSHOT: Could not find artifact in bungeecord-repo ( -> [Help 1]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1]

    Process finished with exit code 1

  2. Code (HTML5):
    Make sure you're using the proper dependency... The artifact is bungeecord-api..

    Also if maven is still picky, try adding the trailing / on the end of the sonatype repo URL.
  3. I got it working, but for some reason bungeecord-api artifact didn't even 'exists', according to Maven/IDE.

    After I changed somethings (I have really no idea what) it fixed.
    Either way thank you for the advise.
Thread Status:
Not open for further replies.