我是刚开始发布到Maven Central的人,我正在尝试首次发布我的项目。我在pom.xml中使用了一些存储库和依赖项,而在尝试部署项目时找不到。
我的pom.xml中的存储库和依赖项
<repositories>
<repository>
<id>aikar</id>
<url>https://repo.aikar.co/content/groups/aikar/</url>
</repository>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<id>bungeecord-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
</repositories>
<dependencies>
<!--Spigot API-->
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.8.8-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>co.aikar</groupId>
<artifactId>taskchain-bukkit</artifactId>
<version>3.7.2</version>
</dependency>
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.9-SNAPSHOT</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.9-SNAPSHOT</version>
<type>javadoc</type>
<scope>provided</scope>
</dependency>
</dependencies>
错误:
[INFO] ----------------------< net.jamesandrew:RealmLib >----------------------
[INFO] Building RealmLib 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.425 s
[INFO] Finished at: 2019-01-29T13:15:10+10:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project RealmLib: Could not resolve dependencies for
project net.jamesandrew:RealmLib:jar:1.0-SNAPSHOT: The following artifacts could not be
resolved: net.md-5:bungeecord-api:jar:1.9-SNAPSHOT,
net.md-5:bungeecord-config:jar:1.9-SNAPSHOT, net.md-5:bungeecord-event:jar:1.9-SNAPSHOT,
net.md-5:bungeecord-protocol:jar:1.9-SNAPSHOT:
Failure to find net.md-5:bungeecord-api:jar:1.9-20160531.105500-38 in
https://repo.aikar.co/content/groups/aikar/ was cached in the local repository,
resolution will not be reattempted until the update interval of aikar has elapsed or
updates are forced -> [Help 1]