Leonidius
Member
I'm trying to add NukkitX as a library to my plugin in IntelliJ IDEA, so i copied the code from this page and pasted it to my pom.xml file.
But Intellij Idea says "dependency not found" and dependency's version (1.0-SNAPSHOT) is highlighted in red.
When I tried to build my project using mvn clean package it said:
What should I do?
Code:
<repositories>
<repository>
<id>nukkit-repo</id>
<url>https://repo.nukkitx.com/snapshot</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>cn.nukkit</groupId>
<artifactId>nukkit</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
When I tried to build my project using mvn clean package it said:
Code:
[ERROR] Failed to execute goal on project trading.interface: Could not resolve dependencies for project ua.leonidius:trading.interface:jar:1.0-SNAPSHOT: Failed to collect
dependencies at cn.nukkit:nukkit:jar:1.0-SNAPSHOT: Failed to read artifact descriptor for cn.nukkit:nukkit:jar:1.0-SNAPSHOT: Could not transfer artifact cn.nukkit:nukkit
:pom:1.0-SNAPSHOT from/to nukkit-repo (https://repo.nukkitx.com/snapshot): Access denied to: https://repo.nukkitx.com/snapshot/cn/nukkit/nukkit/1.0-SNAPSHOT/nukkit-1.0-SN
APSHOT.pom , ReasonPhrase:Forbidden. -> [Help 1]