yannicklamprecht / WorldBorderAPI

A world border api that allows it to define a world border per player
MIT License
125 stars 13 forks source link

Problems with implementing dependency in Maven #86

Closed VerleneDodds closed 2 years ago

VerleneDodds commented 2 years ago

Hello, I am trying to implement the WorldBorderAPI in my spigot plugin, and it's continuing to say "Dependency 'com.github.yannicklamprecht:worldborderapi:1.180.0' not found " could somebody take a look at my pom file and tell me if I've done something wrong? (Snippet of pom below, whole file also uploaded)

`

spigotmc-repo https://hub.spigotmc.org/nexus/content/repositories/snapshots/
    <repository>
        <id>sonatype</id>
        <url>https://oss.sonatype.org/content/groups/public/</url>
    </repository>
    <repository>
    <id>eldonexus</id>
    <url>https://eldonexus.de/repository/maven-releases/</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>org.spigotmc</groupId>
        <artifactId>spigot-api</artifactId>
        <version>1.18.2-R0.1-SNAPSHOT</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>com.github.yannicklamprecht</groupId>
        <artifactId>worldborderapi</artifactId>
        <version>1.180.0</version>
    </dependency>
</dependencies> `

pom.txt

yannicklamprecht commented 2 years ago

You need to use at least Java 17. Java 8 doesn't work.

VerleneDodds commented 2 years ago

Even with changing that java version it is still giving me the dependency not found error, do you have any other suggestions?

alekso56 commented 2 years ago

You are using the wrong version, use this with minecraft 1.18.2

<dependency>
  <groupId>com.github.yannicklamprecht</groupId>
  <artifactId>worldborderapi</artifactId>
  <version>1.182.0</version>
</dependency>
VerleneDodds commented 2 years ago

yeah, I tried that one also, and am still having the same problem, I truly have zero clue what could be going on with it.

alekso56 commented 2 years ago

your pom works for me, assuming you are using pom.xml not pom.txt