如果您查看1.7.0(第一次不包含)和2.7.0(第一次再次包含)之间的许多版本的Ehcache的 Maven存储库,它们不包含 jar。
我之所以问,是因为我正在尝试构建一个依赖于 1.7.2 的旧项目,但我收到了错误:
下载:http://mvnrepo.initech.net/archiva/repository/snapshots/net/sf/ehcache/ehcache/1.7.2/ehcache-1.7.2.jar 下载:http://repo.maven.apache.org/maven2/net/sf/ehcache/ehcache/1.7.2/ehcache-1.7.2.jar [信息] --------------------------------------------- ------------------------- [信息] 构建失败 [信息] --------------------------------------------- ------------------------- [INFO] 总时间:11.871s [INFO] 完成时间:2013 年 7 月 24 日星期三 15:17:44 EDT [INFO] 最终内存:6M/152M [信息] --------------------------------------------- ------------------------- [错误] 无法在项目 initech-fintools-business 上执行目标:无法解析项目 net.initech:initech-fintools-business:jar:1.0-SNAPSHOT 的依赖项:找不到工件 net.sf.ehcache:ehcache:jar :1.7.2 in initech_center (http://mvnrepo.initech.net/archiva/repository/Initech_Center) -> [帮助1]
我应该提到我正在使用 Maven 3.1.0。