1

我已将本地缓存定义如下:

<caches defaultCacheDir="${user.home}/.ivy2/local"
  ivyPattern="[organization]/[module]/[module]-[revision]/[module]-[revision]-ivy.xml"
  artifactPattern="[organization]/[module]/[module]-[revision]/[artifact].[ext]"/>

并尝试使用解析器获取数据

<resolvers>
  <chain name="chain1" changingPattern=".*SNAPSHOT" returnFirst="true">
  <resolver ref="local"/>
  <ibiblio name="maven-repo1" 

我已经拥有本地的所有罐子。但是对于一些罐子来说,它无法找到它们,因为 IVY 正在以不同的路径查看它们,如下所示:

[ivy:resolve]       module not found: org.apache.cxf#cxf-rt-core;2.2.+
[ivy:resolve]   ==== local: tried
[ivy:resolve]     C:\Users\psaha\.ivy2/local/org.apache.cxf/cxf-rt-        core/[revision]/ivys/ivy.xml
[ivy:resolve]     [ivydata-2.2.12.properties, ivydata-2.2.+.properties, cxf-rt-core-2.2.12]
[ivy:resolve]     -- artifact org.apache.cxf#cxf-rt-core;2.2.+!cxf-rt-core.jar:
[ivy:resolve]     C:\Users\psaha\.ivy2/local/org.apache.cxf/cxf-rt-core/[revision]/jars/cxf-rt-core.jar
[ivy:resolve]     [ivydata-2.2.12.properties, ivydata-2.2.+.properties, cxf-rt-core-2.2.12]
[ivy:resolve]       module not found: org.apache.cxf#cxf-rt-frontend-simple;2.2.+
[ivy:resolve]   ==== local: tried
[ivy:resolve]     C:\Users\psaha\.ivy2/local/org.apache.cxf/cxf-rt-frontend-simple/[revision]/ivys/ivy.xml
[ivy:resolve]     [ivydata-2.2.12.properties, ivydata-2.2.+.properties, cxf-rt-frontend-simple-2.2.12]
[ivy:resolve]     -- artifact org.apache.cxf#cxf-rt-frontend-simple;2.2.+!cxf-rt-frontend-simple.jar:
[ivy:resolve]     C:\Users\psaha\.ivy2/local/org.apache.cxf/cxf-rt-frontend-simple/[revision]/jars/cxf-rt-frontend-simple.jar
[ivy:resolve]     [ivydata-2.2.12.properties, ivydata-2.2.+.properties, cxf-rt-frontend-simple-2.2.12]
[ivy:resolve]       module not found: org.apache.cxf#cxf-rt-frontend-jaxws;2.2.+

理想情况下,我不希望常春藤查看 ../ivys/.. 或 ../jars/.. 之类的地方。这只发生在几个 jar/ivy 分辨率中。如何解决这个问题?

4

0 回答 0