求助,elasticsearch-analysis-pinyin 这个拼音分词怎么总是装失败啊
将上面的包下载到服务器,然后用maven编译,一直报错,不清楚是maven没配好,还是这个包的没设置好,求助~~
[root@VM_0_15_centos elasticsearch-analysis-pinyin]# mvn clean install -Dmaven.test.skip
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] Unrecognised tag: 'maven.compiler.source' (position: START_TAG seen ...<repositories>\r\n <maven.compiler.source>... @218:32) @ /usr/local/maven/apache-maven/conf/settings.xml, line 218, column 32
[WARNING]
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.elasticsearch:elasticsearch-analysis-pinyin:jar:7.7.0
[WARNING] 'version' contains an expression but should be a constant. @ org.elasticsearch:elasticsearch-analysis-pinyin:${elasticsearch.version}, /usr/local/elasticsearch-analysis-pinyin/pom.xml, line 9, column 14
[WARNING] 'dependencies.dependency.systemPath' for org.nlpcn:nlp-lang:jar should not point at files within the project directory, ${basedir}/lib/nlp-lang-1.7.jar will be unresolvable by dependent projects @ org.elasticsearch:elasticsearch-analysis-pinyin:${elasticsearch.version}, /usr/local/elasticsearch-analysis-pinyin/pom.xml, line 87, column 25
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ----------< org.elasticsearch:elasticsearch-analysis-pinyin >-----------
[INFO] Building elasticsearch-analysis-pinyin 7.7.0
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for org.apache.maven.plugins:maven-compiler-plugin:jar:3.6.3 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.871 s
[INFO] Finished at: 2020-07-20T18:18:02+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-compiler-plugin:3.6.3 or one of its dependencies could not be resolved: Failure to find org.apache.maven.plugins:maven-compiler-plugin:jar:3.6.3 in http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of alimaven has elapsed or updates are forced -> [Help 1]
[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/PluginResolutionException
网上各种办法试过:
1.改镜像
2.版本不对
3.删除版本
4.删除本地.m2下面存的文件
5.maven换版本
6.jdk换版本
7.卸载全部重装
以上方法均试过就是不行,求个好人告知咋弄
我在 Mac 上测试了一下,如果是要安装 pinyin 分词插件使用的话,不需要 maven 编译,可以直接执行 安装插件命令(我的是 7.6.2 版本,以 7.6.2 为例),直接执行如下命令即可:
然后重启 ES,测试结果如下:
不知道这个是不是可以帮助到你。
maven 的话,我下载了
tar.gz
后缀的源码,解压后可以编译,但是无法正常安装,具体 maven 无法编译的问题还需要再看看