如果您在1.7.0 (first not to)和2.7.0 (first to contain again)之间的许多版本中查看Ehcache的Maven回购,它们不包含罐子。为什么Maven仓库中的许多版本的Ehcache没有罐子?
我问,因为我想建立依赖于1.7.2旧的项目,我得到的错误:
Downloading: http://mvnrepo.initech.net/archiva/repository/snapshots/net/sf/ehcache/ehcache/1.7.2/ehcache-1.7.2.jar Downloading: http://repo.maven.apache.org/maven2/net/sf/ehcache/ehcache/1.7.2/ehcache-1.7.2.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11.871s [INFO] Finished at: Wed Jul 24 15:17:44 EDT 2013 [INFO] Final Memory: 6M/152M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project initech-fintools-business: Could not resolve dependencies for project net.initech:initech-fintools-business:jar:1.0-SNAPSHOT: Could not find artifact net.sf.ehcache:ehcache:jar:1.7.2 in initech_center (http://mvnrepo.initech.net/archiva/repository/Initech_Center) -> [Help 1]
,我使用Maven 3.1.0我应该不在话下。
这是有道理的,但后来它为什么“空”的项目都在回购? – ArtB
这些项目不是空的:pom本身就是工件(即它有包装POM,请参阅http://repo.maven.apache.org/maven2/net/sf/ehcache/ehcache/1.7.0/ehcache- 1.7.0.pom)。 POM在这里被用来作为一个工具来同时获得'ehcache-core'和'ehcache-terracota'只有一个依赖。我编辑了我的答案以显示使用情况。 –
谢谢!我以前从来没有见过。 – ArtB