Closed 7rory768 closed 3 years ago
I'm not sure why JitPack is showing that as the dependency to include - it is incorrect. This is the correct dependency:
com.github.WesJD.AnvilGUI:anvilgui:master-SNAPSHOT'
Im having the same problem i think my issue i opened is the same error you have
Having this same issue. Version 1_8_R3
As a temporary fix you can use my maven repository where I always put the latest updates into, because I always had problems with JitPack
<repository>
<id>sytm-nexus</id>
<url>https://repo.sytm.de/repository/maven-hosted/</url>
</repository>
<dependency>
<groupId>net.wesjd</groupId>
<artifactId>anvilgui</artifactId>
<version>1.3.0-SNAPSHOT</version>
</dependency>
But today or tomorrow I need to migrate the server so there could still be downtime
I'm using like that; https://github.com/spigotplugins/anvil-login/blob/master/pom.xml#L75 and I have no issue with that.
But it actually doesnt work @portlek,
just did a quick mvn clean verify
on your project and while trying to download the deps it could not be resolved
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.058 s
[INFO] Finished at: 2020-09-25T19:35:01+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project AnvilLogin: Could not resolve dependencies for project io.github.portlek:AnvilLogin:jar:1.3: Could not find artifact com.github.WesJD.AnvilGUI:anvilgui:jar:master-1e9b5d3216-1 in jitpack.io (https://jitpack.io) -> [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
It's really weird because this repository https://github.com/KekoSeries/KekoUtil/blob/master/pom.xml#L141 is completely fine. I can build it.
You probably have them cached in your ~/.m2
repository. If you would delete that folder it would try to download it again and fail.
Or just do mvn clean verify -U
, which forces -SNAPSHOT updates
Alright, I found the bug. I'm solving it.
So when I click the link in the README to obtain the maven dependency it says to use the below markup
Using this markup, the AnvilGUI class is not included. Infact only the 1.10 implementation is included in the project
Going back to my old dependency
I have all the libraries, except for the API library which contains the AnvilGUI class, so I can't compile my code.
Any idea of how to fix this? I invalidated my caches and restarted my idea but still the issue persists.