我不是 100% 确定最后一条错误消息,但前两条肯定是相关的:您声明了对 POM 的依赖项,因此.classpath
更新为在您的本地存储库中指向它,但无法找到该文件它和 Eclipse/STS 对此抱怨。
现在,我尝试在 POM 中声明 commons-compress 依赖项:
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>1.0</version>
</dependency>
而且,虽然我可以看到一些关于校验和验证的抱怨:
1/23/10 5:11:10 AM CET:下载中心:org/apache/commons/commons-compress/1.0/commons-compress-1.0.pom
1/23/10 5:11:10 AM CET:下载 [中央] -> http://repo1.maven.org/maven2/org/apache/commons/commons-compress/1.0/commons-compress-1.0.pom
1/23/10 5:11:10 AM CET: [WARN] *** CHECKSUM FAILED - Checksum failed on download: local = '325980a09dbbd0c108ece8e7733b462b00e6f2a8'; 远程 = 'commons-compress-1.0.pom:' - 重试
1/23/10 5:11:10 AM CET:下载中心:org/apache/commons/commons-compress/1.0/commons-compress-1.0.pom
1/23/10 5:11:10 AM CET:下载 [中央] -> http://repo1.maven.org/maven2/org/apache/commons/commons-compress/1.0/commons-compress-1.0.pom
1/23/10 5:11:11 AM CET: [WARN] *** CHECKSUM FAILED - Checksum failed on download: local = '325980a09dbbd0c108ece8e7733b462b00e6f2a8'; 远程 = 'commons-compress-1.0.pom:' - 忽略
1/23/10 5:11:12 AM CET:下载中心:org/apache/commons/commons-compress/1.0/commons-compress-1.0.jar
1/23/10 5:11:15 AM CET:下载 [中央] -> http://repo1.maven.org/maven2/org/apache/commons/commons-compress/1.0/commons-compress-1.0.jar
1/23/10 5:11:16 AM CET: [WARN] *** CHECKSUM FAILED - Checksum failed on download: local = '995ae384a0b1e2c66269e6bc5198db8561fb45a2'; 远程 = 'commons-compress-1.0.jar:' - 重试
1/23/10 5:11:16 AM CET:下载中心:org/apache/commons/commons-compress/1.0/commons-compress-1.0.jar
1/23/10 5:11:18 AM CET:下载 [中央] -> http://repo1.maven.org/maven2/org/apache/commons/commons-compress/1.0/commons-compress-1.0.jar
1/23/10 5:11:18 AM CET: [WARN] *** CHECKSUM FAILED - Checksum failed on download: local = '995ae384a0b1e2c66269e6bc5198db8561fb45a2'; 远程 = 'commons-compress-1.0.jar:' - 忽略
工件被下载。
因此,请检查您是否没有将中央存储库配置checksumPolicy
为fail
. settings.xml
在您或 m2eclipse 使用的全局设置(Windows > Preferences > Maven > Installations)或项目配置文件中寻找类似的东西:
<checksumPolicy>fail</checksumPolicy>
如果您找不到类似的东西,那么解决方法是手动安装 commons-compress。