我在IntelliJ中有一个用于Minecraft Java插件的Maven项目。
我正在尝试通过Maven添加依赖项。这是我的pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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>com.drugpvp</groupId>
<artifactId>DonationTotal</artifactId>
<version>1.0</version>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<repositories>
<!-- This adds the Spigot Maven repository to the build -->
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<!-- Dependency information -->
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.15.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.MilkBowl</groupId>
<artifactId>VaultAPI</artifactId>
<version>1.7</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.luckperms</groupId>
<artifactId>api</artifactId>
<version>5.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.CraftingStore</groupId>
<artifactId>MinecraftPlugin</artifactId>
<version>master-e5041fb52d-1</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
出于某种原因,它在Maven标签中显示了所有这些this
我尝试了“重新加载所有Maven项目”,但是什么也没做。
<project ...>
在我的pom.xml中是红色的,将鼠标悬停在上面会显示this
当我尝试运行软件包时,它说
[ERROR] Failed to execute goal on project DonationTotal: Could not resolve dependencies for project com.drugpvp:DonationTotal:jar:1.0: Failed to collect dependencies at com.github.CraftingStore:MinecraftPlugin:jar:master-e5041fb52d-1 -> com.github.CraftingStore.MinecraftPlugin:assembly:jar:master-SNAPSHOT: Failed to read artifact descriptor for com.github.CraftingStore.MinecraftPlugin:assembly:jar:master-SNAPSHOT: Failure to find net.craftingstore:craftingstore:pom:${revision} in https://hub.spigotmc.org/nexus/content/repositories/snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of spigot-repo has elapsed or updates are forced -> [Help 1]
请帮助,谢谢。