Unable to add jar file to .ivy cache manually

前端 未结 2 2065
执念已碎
执念已碎 2020-12-19 04:43

I am trying to manually add lucene jar file to my local ivy repository. I have other apache jars so under the existing folder .ivy2\\cache\\apache.org\\ I\'ve created a fold

2条回答
  •  一向
    一向 (楼主)
    2020-12-19 05:41

    The ivy cache is not a repository, it's a cache (Different to Maven). The cache contains metadata files that record what ivy has previously downloaded.

    I suggest you place files into ivy's local repository location which stored (by default) alongside the cache:

    $HOME/.ivy2/local
    

    So in your example the jar needs to be stored here:

    $HOME/.ivy2/local/org.apache/lucene/3.0.3/jars/lucene.jar
    

提交回复
热议问题