今天早些时候,我刚刚在一个刚导入的 maven 项目上做一些工作,但遇到了一些麻烦。它没有得到一定的依赖。我尝试删除依赖文件夹,然后重新下载它并清理项目然后更新它,但它什么也没做。然后我注意到我的另一个 maven 项目弹出了第一个项目的 pom.xml 错误。“无法读取工件 org.apache.maven.plugins:mav 的生命周期映射元数据”我将 maven 更新到 3.1.0 仍然没有。这是我的 pom.xml:
<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>me.kyle.burnett</groupId>
<artifactId>Sky-Block-Wars</artifactId>
<version>1.0.0</version>
<name>Sky-Block Wars</name>
<url>http://dev.bukkit.org/bukkit-plugins/sky-block-wars/</url>
<description>Shrunk
</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>craftbukkit</artifactId>
<version>1.6.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.sk89q</groupId>
<artifactId>worldedit</artifactId>
<version>5.5.8-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.bukkit</groupId>
<artifactId>bukkit</artifactId>
<version>1.6.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
<repositories>
<repository>
<id>bukkit-repo</id>
<url>http://repo.bukkit.org/content/groups/public</url>
</repository>
<repository>
<id>sk89w repo</id>
<url>http://maven.sk89q.com/repo</url>
<!-- <url>http://maven.sk89q.com/artifactory/libs-release-local</url> -->
</repository>
</repositories>
<build>
<sourceDirectory>src/</sourceDirectory>
<resources>
<resource>
<directory>resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>