简体   繁体   中英

Intellij Maven dependency not resolved while following guide

I am currently trying to follow this guide and every time I try to run the test code I am getting this error:

[ERROR] Failed to execute goal on project MyBot: Could not resolve dependencies for project org.example:MyBot:jar:1.0-SNAPSHOT: org.javacord:javacord:jar:3.4.0 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

pom.xml

Maybe you have to load the dependencies you added to the pom.xml.

in IntelliJ you can right click on your pom.xml chose maven -> reload Project. This loads all dependencies from pom.xml. Check the console output for any errors.

Should the answer from Kaspatoo not working for you you can try to add the repository from Javacord to your project.

I figured it out, maven had downloaded the jars for the Dependency but wasn't loading them, I pointed maven to them in the system directory, and its working now

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM