首页 > 解决方案 > 使用 maven install 目标下载 hamcrest-core-1.2.1.jar 时 LOC 标头(错误签名)无效

问题描述

错误片段:“.m2\repository\org\hamcrest\hamcrest-core\1.2.1\hamcrest-core-1.2.1.jar;无效 LOC 标头(错误签名)”

使用 maven 安装目标下载 hamcrest-core-1.2.1.jar 时 LOC 标头(错误签名)无效

Maven依赖:

试过:

"<dependency>
  <groupId>org.hamcrest</groupId>
  <artifactId>hamcrest-core</artifactId>
  <scope>compile</scope>
</dependency>"

"<dependency>
  <groupId>org.hamcrest</groupId>
  <artifactId>hamcrest-core</artifactId>
  <scope>test</scope>
</dependency>"

在这两种情况下都会出现相同的错误。

标签: mavenhamcrest

解决方案


推荐阅读