HypixelDev / PublicAPI

Official Java implementation of the Hypixel Public API.
https://api.hypixel.net
MIT License
533 stars 151 forks source link

Cannot find resolve some dependencies #402

Closed eevanwong closed 3 years ago

eevanwong commented 3 years ago

Running as project on intellij cannot download dependencies.

Could not find artifact net.hypixel:Java:pom:2.0.0 in central (https://repo.maven.apache.org/maven2)
Could not find artifact net.hypixel:Java:jar:2.0.0 in central (https://repo.maven.apache.org/maven2)
robere2 commented 3 years ago

If you haven't already, read this first: https://github.com/HypixelDev/PublicAPI#usage If you have, can you share your full build configuration file? Either build.gradle or pom.xml.

eevanwong commented 3 years ago

Ok my bad... 5 minutes later I just saw this PR

https://github.com/HypixelDev/PublicAPI/pull/342

Perhaps the references were wrong and the pull rq wasnt merged yet

pom.xml file is

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://maven.apache.org/POM/4.0.0"
         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>net.hypixel</groupId>
    <artifactId>PublicAPI</artifactId>
    <packaging>pom</packaging>
    <version>2.0-SNAPSHOT</version>

    <modules>
        <module>Example</module>
        <module>Java</module>
    </modules>

</project>
robere2 commented 3 years ago

From the README, have you tried just using this? Just replace the current <groupId>net...SHOT</version> section with this.

<repository>
    <id>Hypixel</id>
    <url>https://repo.hypixel.net/repository/Hypixel/</url>
</repository>
<dependency>
    <groupId>net.hypixel</groupId>
    <artifactId>HypixelAPI</artifactId>
    <version>3.0.0</version>
</dependency>
eevanwong commented 3 years ago

Yeah got it, thanks a bunch.