Solr源码导入eclipse报错

原文地址:http://bbs.csdn.net/topics/390830339

已下载并解压solr-4.9.0-src
ant 环境已经配置好
但是运行ant eclipse命令时,报错!报错信息如下:
[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: WARNINGS
[ivy:retrieve]          module not found: org.carrot2#morfologik-polish;1.7.1
[ivy:retrieve]  ==== local: tried
[ivy:retrieve]    C:\Users\LC\.ivy2\local\org.carrot2\morfologik-polish\1.7
.1\ivys\ivy.xml
[ivy:retrieve]    -- artifact org.carrot2#morfologik-polish;1.7.1!morfologik-pol
ish.jar:
[ivy:retrieve]    C:\Users\LC\.ivy2\local\org.carrot2\morfologik-polish\1.7
.1\jars\morfologik-polish.jar
.
.
略去
.
.
[ivy:retrieve]    http://uk.maven.org/maven2/org/carrot2/morfologik-polish/1.7.1
/morfologik-polish-1.7.1.pom
[ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]          ::          UNRESOLVED DEPENDENCIES         ::
[ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]          :: org.carrot2#morfologik-polish;1.7.1: not found
[ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]
[ivy:retrieve] :::: ERRORS
[ivy:retrieve]  impossible to acquire lock for org.carrot2#morfologik-polish;1.7
.1
[ivy:retrieve]  impossible to acquire lock for org.carrot2#morfologik-polish;1.7
.1
[ivy:retrieve]  impossible to acquire lock for org.carrot2#morfologik-polish;1.7
.1
[ivy:retrieve]  impossible to acquire lock for org.carrot2#morfologik-polish;1.7
.1
[ivy:retrieve]  impossible to acquire lock for org.carrot2#morfologik-polish;1.7
.1
[ivy:retrieve]  impossible to acquire lock for org.carrot2#morfologik-polish;1.7
.1
[ivy:retrieve]  impossible to acquire lock for org.carrot2#morfologik-polish;1.7
.1
[ivy:retrieve]  impossible to acquire lock for org.carrot2#morfologik-polish;1.7
.1
[ivy:retrieve]  impossible to acquire lock for org.carrot2#morfologik-polish;1.7
.1
[ivy:retrieve]  impossible to acquire lock for org.carrot2#morfologik-polish;1.7
.1
[ivy:retrieve]  impossible to acquire lock for org.carrot2#morfologik-polish;1.7
.1
[ivy:retrieve]  impossible to acquire lock for org.carrot2#morfologik-polish;1.7
.1
[ivy:retrieve]  impossible to acquire lock for org.carrot2#morfologik-polish;1.7
.1
[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED
D:\Solr\solr-4.9.0-src\solr-4.9.0\build.xml:104: The following error occurred wh
ile executing this line:
D:\Solr\solr-4.9.0-src\solr-4.9.0\lucene\build.xml:200: The following error occu
rred while executing this line:
D:\Solr\solr-4.9.0-src\solr-4.9.0\lucene\common-build.xml:2017: The following er
ror occurred while executing this line:
D:\Solr\solr-4.9.0-src\solr-4.9.0\lucene\analysis\build.xml:91: The following er
ror occurred while executing this line:
D:\Solr\solr-4.9.0-src\solr-4.9.0\lucene\analysis\build.xml:38: The following er
ror occurred while executing this line:
D:\Solr\solr-4.9.0-src\solr-4.9.0\lucene\common-build.xml:388: impossible to res
olve dependencies:
        resolve failed - see output for details

Total time: 27 minutes 3 seconds

提示说是找不到org.carrot2#morfologik-polish;1.7.1
请问各位应该如何解决呢?
我已经下载了morfologik-polish-1.7.1.jar文件,但又不知道放在哪里,没有找到在ant和solr下都没找到下载目录。

用ivy+ant挺麻烦的,建议用maven来构建

 

posted @ 2015-12-12 01:13  ihuning  阅读(668)  评论(0编辑  收藏  举报