huaban / jieba-analysis

结巴分词(java版)
https://github.com/huaban/jieba-analysis
Apache License 2.0
2.52k stars 833 forks source link

maven构建失败:错误: 找不到符号 #110

Open Core2002 opened 4 years ago

Core2002 commented 4 years ago

[INFO] Compiling 11 source files to E:\jieba-analysis\target\classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] \jieba-analysis\src\main\java\com\huaban\analysis\jieba\JiebaSegmenter.java:[25,29] 错误: 找不到符号 [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 28.037 s [INFO] Finished at: 2020-03-24T06:11:54+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project jieba-analysis: Compilation failure [ERROR] \jieba-analysis\src\main\java\com\huaban\analysis\jieba\JiebaSegmenter.java:[25,29] 错误: 找不到符号 [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

ChoKhoOu commented 4 years ago

你自己重新导入一下包就行 就在那个文件

situjie68 commented 3 years ago

在JiebaSegmenter.java文件中 添加 import java.nio.file.Path;