上个月我问了这个问题,因为我无法使用 M2E Eclipse 插件将 EhCache jar 拉入我的本地 Maven 缓存。
现在,我正在尝试将几个 EhCache/Terracotta POM 文件转换为 Ivy XML 文件(使用该IvyConvertPom
任务(这对于我本地存储库中的每个其他 POM 都非常有效 - 并且有数百个)并且它令人窒息,说明:
不可能将给定的 pom 文件转换为 ivy 文件:java.io.IOException: Impossible to load parent for file:/C:/Users/myUser/jars/net/sf/ehcache/ehcache-terracotta-root/2.5.0/ehcache- terracotta-root-2.5.0.pom。Parent=org.terracotta.forge#forge-parent;2.3 from=C:/Users/myUser/jars\net\sf\ehcache\ehcache-terracotta-root\2.5.0\ehcache-terracotta-root-2.5.0。 pom to=C:/Users/myUser/jars\net\sf\ehcache\ehcache-terracotta-root\2.5.0\ivy.xml
找不到 C:/Users/myUser\jars\net\sf\ehcache 的工件\ehcache-terracotta-root\2.5.0\ehcache-terracotta-root-2.5.0.pom
以下所有 EhCache/Terracotta 工件都会发生这种情况:
net\sf\ehcache\ehcache-terracotta\2.4.7\ehcache-terracotta-2.4.7.pom
net\sf\ehcache\ehcache-terracotta\2.5.0\ehcache-terracotta-2.5.0.pom
net\sf\ehcache\ehcache-terracotta-root\2.4.7\ehcache-terracotta-root-2.4.7.pom
net\sf\ehcache\ehcache-terracotta-root\2.5.0\ehcache-terracotta-root-2.5.0.pom
我不确定这个问题是否与我上个月遇到的问题有关,或者 EhCache 的开发人员是否只是有一种非标准的方式来编写他们的 POM,但这是现在 Maven(IvyConvertPom
在hood) 对用他们的罐子做某事感到窒息。
有什么事情是显而易见的吗?否则我必须调试 Ivy 代码,这听起来像是结束星期三的痛苦方式。如果必须,我会这样做,但我想我会先在这里问,以防我遗漏了一些明显的东西。
提前致谢!