求助,elasticsearch-analysis-pinyin 这个拼音分词怎么总是装失败啊

将上面的包下载到服务器,然后用maven编译,一直报错,不清楚是maven没配好,还是这个包的没设置好,求助~~

求助,elasticsearch-analysis-pinyin 这个拼音分词怎么总是装失败啊

[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 为例),直接执行如下命令即可:

➜  plugins ./../bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-pinyin/releases/download/v7.6.2/elasticsearch-analysis-pinyin-7.6.2.zip

然后重启 ES,测试结果如下:

file

不知道这个是不是可以帮助到你。

maven 的话,我下载了 tar.gz 后缀的源码,解压后可以编译,但是无法正常安装,具体 maven 无法编译的问题还需要再看看

4年前 评论
讨论数量: 6

能否把完整的报错信息通过代码块的格式发出来

4年前 评论

我在 Mac 上测试了一下,如果是要安装 pinyin 分词插件使用的话,不需要 maven 编译,可以直接执行 安装插件命令(我的是 7.6.2 版本,以 7.6.2 为例),直接执行如下命令即可:

➜  plugins ./../bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-pinyin/releases/download/v7.6.2/elasticsearch-analysis-pinyin-7.6.2.zip

然后重启 ES,测试结果如下:

file

不知道这个是不是可以帮助到你。

maven 的话,我下载了 tar.gz 后缀的源码,解压后可以编译,但是无法正常安装,具体 maven 无法编译的问题还需要再看看

4年前 评论

@DRose 我是在centos7上面装的,用git下下来的,然后maven编译

4年前 评论

@DRose

[root@VM_0_15_centos plugins]# ../bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-pinyin/releases/download/v7.6.2/elasticsearch-analysis-pinyin-7.6.2.zip
-> Installing https://github.com/medcl/elasticsearch-analysis-pinyin/releases/download/v7.6.2/elasticsearch-analysis-pinyin-7.6.2.zip
-> Downloading https://github.com/medcl/elasticsearch-analysis-pinyin/releases/download/v7.6.2/elasticsearch-analysis-pinyin-7.6.2.zip
[                                                 ] 1%
4年前 评论

@DRose 为啥我的一直下不动。。。

4年前 评论
DRose 4年前

@DRose

[root@VM_0_15_centos plugins]# ../bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-pinyin/releases/download/v7.6.2/elasticsearch-analysis-pinyin-7.6.2.zip
-> Installing https://github.com/medcl/elasticsearch-analysis-pinyin/releases/download/v7.6.2/elasticsearch-analysis-pinyin-7.6.2.zip
-> Downloading https://github.com/medcl/elasticsearch-analysis-pinyin/releases/download/v7.6.2/elasticsearch-analysis-pinyin-7.6.2.zip
[                                                 ] 1%



-> Failed installing https://github.com/medcl/elasticsearch-analysis-pinyin/releases/download/v7.6.2/elasticsearch-analysis-pinyin-7.6.2.zip
-> Rolling back https://github.com/medcl/elasticsearch-analysis-pinyin/releases/download/v7.6.2/elasticsearch-analysis-pinyin-7.6.2.zip
-> Rolled back https://github.com/medcl/elasticsearch-analysis-pinyin/releases/download/v7.6.2/elasticsearch-analysis-pinyin-7.6.2.zip
Exception in thread "main" javax.net.ssl.SSLException: Connection reset
    at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:127)
    at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:325)
    at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:268)
    at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:263)
    at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:140)
    at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1465)
    at java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1433)
    at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:1022)
    at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:282)
    at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:343)
    at java.base/sun.net.www.MeteredStream.read(MeteredStream.java:134)
    at java.base/java.io.FilterInputStream.read(FilterInputStream.java:132)
    at java.base/sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3535)
    at java.base/java.io.FilterInputStream.read(FilterInputStream.java:132)
    at org.elasticsearch.plugins.ProgressInputStream.read(ProgressInputStream.java:55)
    at java.base/java.io.InputStream.transferTo(InputStream.java:776)
    at java.base/java.nio.file.Files.copy(Files.java:3155)
    at org.elasticsearch.plugins.InstallPluginCommand.downloadZip(InstallPluginCommand.java:451)
    at org.elasticsearch.plugins.InstallPluginCommand.download(InstallPluginCommand.java:329)
    at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:251)
    at org.elasticsearch.plugins.InstallPluginCommand.execute(InstallPluginCommand.java:224)
    at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)
    at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:127)
    at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:91)
    at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:127)
    at org.elasticsearch.cli.Command.main(Command.java:90)
    at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:47)
    Suppressed: java.net.SocketException: 断开的管道
        at java.base/sun.nio.ch.NioSocketImpl.implWrite(NioSocketImpl.java:420)
        at java.base/sun.nio.ch.NioSocketImpl.write(NioSocketImpl.java:440)
        at java.base/sun.nio.ch.NioSocketImpl$2.write(NioSocketImpl.java:826)
        at java.base/java.net.Socket$SocketOutputStream.write(Socket.java:1052)
        at java.base/sun.security.ssl.SSLSocketOutputRecord.encodeAlert(SSLSocketOutputRecord.java:82)
        at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:356)
        ... 25 more
Caused by: java.net.SocketException: Connection reset
    at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:323)
    at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:350)
    at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:803)
    at java.base/java.net.Socket$SocketInputStream.read(Socket.java:982)
    at java.base/sun.security.ssl.SSLSocketInputRecord.read(SSLSocketInputRecord.java:457)
    at java.base/sun.security.ssl.SSLSocketInputRecord.decodeInputRecord(SSLSocketInputRecord.java:237)
    at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:190)
    at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:109)
    ... 22 more
4年前 评论
DRose 4年前
赌赌赌赌赌赌赌圣! (作者) (楼主) 4年前
赌赌赌赌赌赌赌圣! (作者) (楼主) 4年前
赌赌赌赌赌赌赌圣! (作者) (楼主) 4年前
DRose 4年前

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!