duydo / elasticsearch-analysis-vietnamese

Vietnamese Analysis Plugin for Elasticsearch
Apache License 2.0
508 stars 212 forks source link

Build fail with elasticsearch 7.0.0 #58

Closed itlboy closed 5 years ago

itlboy commented 5 years ago

[INFO] Scanning for projects... [INFO] [INFO] --------< org.elasticsearch:elasticsearch-analysis-vietnamese >--------- [INFO] Building elasticsearch-analysis-vietnamese 7.0.0 [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ elasticsearch-analysis-vietnamese --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ elasticsearch-analysis-vietnamese --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 5 source files to /usr/src/mymaven/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /usr/src/mymaven/src/main/java/org/elasticsearch/index/analysis/VietnameseTokenizerFactory.java:[32,9] constructor AbstractTokenizerFactory in class org.elasticsearch.index.analysis.AbstractTokenizerFactory cannot be applied to given types; required: org.elasticsearch.index.IndexSettings,org.elasticsearch.common.settings.Settings found: org.elasticsearch.index.IndexSettings,java.lang.String,org.elasticsearch.common.settings.Settings reason: actual and formal argument lists differ in length [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.521 s [INFO] Finished at: 2019-04-26T07:52:19Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project elasticsearch-analysis-vietnamese: Compilation failure [ERROR] /usr/src/mymaven/src/main/java/org/elasticsearch/index/analysis/VietnameseTokenizerFactory.java:[32,9] constructor AbstractTokenizerFactory in class org.elasticsearch.index.analysis.AbstractTokenizerFactory cannot be applied to given types; [ERROR] required: org.elasticsearch.index.IndexSettings,org.elasticsearch.common.settings.Settings [ERROR] found: org.elasticsearch.index.IndexSettings,java.lang.String,org.elasticsearch.common.settings.Settings [ERROR] reason: actual and formal argument lists differ in length [ERROR] [ERROR] -> [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/MojoFailureException

lequi commented 5 years ago

Same issue when I build for elasticsearch 7.1.0

[INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] [INFO] --------< org.elasticsearch:elasticsearch-analysis-vietnamese >--------- [INFO] Building elasticsearch-analysis-vietnamese 7.1.0 [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ elasticsearch-analysis-vietnamese --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ elasticsearch-analysis-vietnamese --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 5 source files to /Users/lequi/Works/Learn/Elasticsearch/vn-nlp-libraries/elasticsearch-analysis-vietnamese/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /Users/lequi/Works/Learn/Elasticsearch/vn-nlp-libraries/elasticsearch-analysis-vietnamese/src/main/java/org/elasticsearch/index/analysis/VietnameseTokenizerFactory.java:[32,9] constructor AbstractTokenizerFactory in class org.elasticsearch.index.analysis.AbstractTokenizerFactory cannot be applied to given types; required: org.elasticsearch.index.IndexSettings,org.elasticsearch.common.settings.Settings found: org.elasticsearch.index.IndexSettings,java.lang.String,org.elasticsearch.common.settings.Settings reason: actual and formal argument lists differ in length [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.660 s [INFO] Finished at: 2019-06-04T17:04:01+07:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project elasticsearch-analysis-vietnamese: Compilation failure [ERROR] /Users/lequi/Works/Learn/Elasticsearch/vn-nlp-libraries/elasticsearch-analysis-vietnamese/src/main/java/org/elasticsearch/index/analysis/VietnameseTokenizerFactory.java:[32,9] constructor AbstractTokenizerFactory in class org.elasticsearch.index.analysis.AbstractTokenizerFactory cannot be applied to given types; [ERROR] required: org.elasticsearch.index.IndexSettings,org.elasticsearch.common.settings.Settings [ERROR] found: org.elasticsearch.index.IndexSettings,java.lang.String,org.elasticsearch.common.settings.Settings [ERROR] reason: actual and formal argument lists differ in length [ERROR] [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project elasticsearch-analysis-vietnamese: Compilation failure /Users/lequi/Works/Learn/Elasticsearch/vn-nlp-libraries/elasticsearch-analysis-vietnamese/src/main/java/org/elasticsearch/index/analysis/VietnameseTokenizerFactory.java:[32,9] constructor AbstractTokenizerFactory in class org.elasticsearch.index.analysis.AbstractTokenizerFactory cannot be applied to given types; required: org.elasticsearch.index.IndexSettings,org.elasticsearch.common.settings.Settings found: org.elasticsearch.index.IndexSettings,java.lang.String,org.elasticsearch.common.settings.Settings reason: actual and formal argument lists differ in length

at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:497)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure /Users/lequi/Works/Learn/Elasticsearch/vn-nlp-libraries/elasticsearch-analysis-vietnamese/src/main/java/org/elasticsearch/index/analysis/VietnameseTokenizerFactory.java:[32,9] constructor AbstractTokenizerFactory in class org.elasticsearch.index.analysis.AbstractTokenizerFactory cannot be applied to given types; required: org.elasticsearch.index.IndexSettings,org.elasticsearch.common.settings.Settings found: org.elasticsearch.index.IndexSettings,java.lang.String,org.elasticsearch.common.settings.Settings reason: actual and formal argument lists differ in length

at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:911)
at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:129)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:497)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

[ERROR] [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/MojoFailureException

duydo commented 5 years ago

@itlboy @lequi

Anh có fix cho Elasticsearch v7.0.0 trong nhánh này , 2 em build rồi test cùng anh nhé. Cám ơn 2 em.

lequi commented 5 years ago

@duydo em đã build & test, hiện tại hoạt động tốt anh. Có vấn đề gì em sẽ feedback thêm. Cảm ơn anh.