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. Spoiler: pom.xml Code (Text): <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.breachuniverse</groupId> <artifactId>Store</artifactId> <version>0.0.1-SNAPSHOT</version> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>net.md-5</groupId> <artifactId>bungeecord-parent</artifactId> <version>1.9-SNAPSHOT</version> <scope>provided</scope> </dependency> </dependencies> <repositories> <repository> <id>bungeecord-repo</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> </repository> </repositories> </project> Spoiler: Error at compile time 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] ------------------------------------------------------------------------ [INFO] Building Store 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ Downloading: https://oss.sonatype.org/content/repositories/snapshots/net/md-5/bungeecord-parent/1.9-SNAPSHOT/bungeecord-parent-1.9-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [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 net.md-5:bungeecord-parent:jar:1.9-SNAPSHOT in bungeecord-repo (https://oss.sonatype.org/content/repositories/snapshots) -> [Help 1] [ERROR] [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] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException Process finished with exit code 1 Greetings, Ronald.
Code (HTML5): <dependency> <groupId>net.md-5</groupId> <artifactId>bungeecord-api</artifactId> <version>1.9-SNAPSHOT</version> <scope>provided</scope> </dependency> 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.
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.