Rails 求教 ElasticSearch 添加 IK 分词

liangbin661831 · January 17, 2015 · Last by Thomastar replied at May 19, 2018 · 4794 hits

git clone https://github.com/medcl/elasticsearch-analysis-ik.git cd elasticsearch-analysis-ik/ mvn package

[INFO] Scanning for projects... [ERROR] The build could not read 1 project -> [Help 1] [ERROR]
[ERROR] The project org.elasticsearch:elasticsearch-analysis-ik:1.2.9 (/home/lb/Downloads/elasticsearch-analysis-ik/pom.xml) has 1 error [ERROR] Non-parseable POM /home/lb/.m2/repository/org/sonatype/oss/oss-parent/7/oss-parent-7.pom: Expected root element 'project' but found 'html' (position: START_TAG seen ... @1:6) @ /home/lb/.m2/repository/org/sonatype/oss/oss-parent/7/oss-parent-7.pom, line 1, column 6 -> [Help 2] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException [ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException

结果就但疼了,求大神指点

问题解决了,是因为一开始安装的 maven2,卸载的时候没有卸载完全,后来 sudo apt-get autoremove 并删除.m2 文件夹,重新安装 maven 就 ok 了。

你的自定义的词语是怎么写的?

You need to Sign in before reply, if you don't have an account, please Sign up first.