WesJD / AnvilGUI

Capture user input in Minecraft through an anvil GUI in under 20 lines of code
MIT License
475 stars 113 forks source link

Broken Maven Dependency #109

Closed 7rory768 closed 3 years ago

7rory768 commented 3 years ago

So when I click the link in the README to obtain the maven dependency it says to use the below markup image

Using this markup, the AnvilGUI class is not included. Infact only the 1.10 implementation is included in the project image

Going back to my old dependency

        <dependency>
            <groupId>com.github.WesJD</groupId>
            <artifactId>AnvilGUI</artifactId>
            <version>master-1e9b5d3216-1</version>
        </dependency>

I have all the libraries, except for the API library which contains the AnvilGUI class, so I can't compile my code. image image

Any idea of how to fix this? I invalidated my caches and restarted my idea but still the issue persists.

WesJD commented 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'

pomtom44 commented 3 years ago

Im having the same problem i think my issue i opened is the same error you have

jonahseguin commented 3 years ago

Having this same issue. Version 1_8_R3

Sytm commented 3 years ago

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

portlek commented 3 years ago

I'm using like that; https://github.com/spigotplugins/anvil-login/blob/master/pom.xml#L75 and I have no issue with that.

Sytm commented 3 years ago

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
portlek commented 3 years ago

It's really weird because this repository https://github.com/KekoSeries/KekoUtil/blob/master/pom.xml#L141 is completely fine. I can build it.

Sytm commented 3 years ago

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

portlek commented 3 years ago

Alright, I found the bug. I'm solving it.