question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove requirement of locally installing Spigot JARs

See original GitHub issue

Currently when building I am getting this error in my maven build log.

Could not resolve dependencies for project net.demozo.paper:Youkai:jar:1.0-SNAPSHOT: Failure to find org.spigotmc:spigot:jar:1.15-R0.1-SNAPSHOT in https://papermc.io/repo/repository/maven-public/ was cached in the local repository, resolution will not be reattempted until the update interval of papermc-repo has elapsed or updates are forced -> [Help 1]

With the dependency added as instructed in the documentation. I assume adding the Spigot maven repo instead of making people install the Spigot jar into their local maven repo would solve this, especially since I personally and many other people use Paper instead of Spigot.

<repository>
    <id>spigot-repo</id>
    <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>

Why is it expected people do this in the first place?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
JorelAlicommented, Jul 6, 2020

I see. Yes, that is indeed incorrect - the CommandAPI shouldn’t have to depend spigot itself, it should depend on the spigot-api.


Also, I just wanted to say thanks for being patient with me! I’m still learning how to use maven and all of this dependency stuff is complicated using it for the first time!

1reaction
JorelAlicommented, Jul 6, 2020

According to this stackoverflow, apparently this is the default behavior for Gradle? It seems very “incorrect”. To be frank, I cba to go report stuff to gradle right now. That being said, it’s nice to know adding the repository manually “solves” the issue. I’ll make sure to update this in the documentation. Thanks again!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Uninstall a spigot? | Page 2 | SpigotMC
Ignore the folders, they are mostly code it used to build the jar, and can be partially re-used when updating. Move the Spigot.jar...
Read more >
Instructions for setting up a Spigot server using mark2 on a ...
Finally, let's download and install our Minecraft server running Spigot. ... otherwise run it locally and upload the JAR, or wget from a...
Read more >
2 Installation and configuration | R Programming with Minecraft
You can use Spigot to set up your own server, even locally on your machine. ... To get all the required pieces and...
Read more >
Installation | Wiki - LuckPerms
Navigate to the libraries/net/md-5/SpecialSource/1.7-SNAPSHOT directory · Delete the SpecialSource-1.7-SNAPSHOT. · Download SpecialSource v1. · Copy the jar file ...
Read more >
When maven says "resolution will not be reattempted until the ...
I used to solve this issue by deleting the corresponding failed to download artifact directory in my local repo. Next time I run...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found