我的异常处理笔记2--maven项目找不到符号

xiaoxiao2021-02-28  120

在做maven的项目时出现了下面的错误

[INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building xxx-manage 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ xxx-manage --- [INFO] Deleting E:\EclipseCodes2\xxx-parent\xxx-manage\target [INFO] [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ xxx-manage >>> [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ xxx-manage --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource [INFO] Copying 4 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ xxx-manage --- [INFO] Changes detected - recompiling the module! [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! [INFO] Compiling 11 source files to E:\EclipseCodes2\xxx-parent\xxx-manage\target\classes [INFO] ------------------------------------------------------------- [WARNING] COMPILATION WARNING : [INFO] ------------------------------------------------------------- [WARNING] /E:/EclipseCodes2/xxx-parent/xxx-manage/src/main/java/com/xxx/manage/service/impl/TbItemParamServiceImpl.java: E:\EclipseCodes2\xxx-parent\xxx-manage\src\main\java\com\xxx\manage\service\impl\TbItemParamServiceImpl.java使用了未经检查或不安全的操作。 [WARNING] /E:/EclipseCodes2/xxx-parent/xxx-manage/src/main/java/com/xxx/manage/service/impl/TbItemParamServiceImpl.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 [INFO] 2 warnings [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /E:/EclipseCodes2/xxx-parent/xxx-manage/src/main/java/com/xxx/manage/service/impl/TbItemParamServiceImpl.java:[57,47] 找不到符号 符号: 方法 insParamSelective(com.xxx.pojo.TbItemParam) 位置: 类型为com.xxx.dubbo.service.TbItemParamDubboService的变量 tbItemParamDubboService [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 13.622 s [INFO] Finished at: 2017-08-06T17:52:59+08:00 [INFO] Final Memory: 17M/143M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project xxx-manage: Compilation failure [ERROR] /E:/EclipseCodes2/xxx-parent/xxx-manage/src/main/java/com/xxx/manage/service/impl/TbItemParamServiceImpl.java:[57,47] 找不到符号 [ERROR] 符号: 方法 insParamSelective(com.xxx.pojo.TbItemParam) [ERROR] 位置: 类型为com.xxx.dubbo.service.TbItemParamDubboService的变量 tbItemParamDubboService [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 ---------------------------------------------------------------------- [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building xxx-manage 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ xxx-manage --- [INFO] Deleting E:\EclipseCodes2\xxx-parent\xxx-manage\target [INFO] [INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ xxx-manage >>> [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ xxx-manage --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource [INFO] Copying 4 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ xxx-manage --- [INFO] Changes detected - recompiling the module! [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! [INFO] Compiling 11 source files to E:\EclipseCodes2\xxx-parent\xxx-manage\target\classes [INFO] ------------------------------------------------------------- [WARNING] COMPILATION WARNING : [INFO] ------------------------------------------------------------- [WARNING] /E:/EclipseCodes2/xxx-parent/xxx-manage/src/main/java/com/xxx/manage/service/impl/TbItemParamServiceImpl.java: E:\EclipseCodes2\xxx-parent\xxx-manage\src\main\java\com\xxx\manage\service\impl\TbItemParamServiceImpl.java使用了未经检查或不安全的操作。 [WARNING] /E:/EclipseCodes2/xxx-parent/xxx-manage/src/main/java/com/xxx/manage/service/impl/TbItemParamServiceImpl.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 [INFO] 2 warnings [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /E:/EclipseCodes2/xxx-parent/xxx-manage/src/main/java/com/xxx/manage/service/impl/TbItemParamServiceImpl.java:[70,57] 找不到符号 符号: 方法 delById(long) 位置: 类型为com.xxx.dubbo.service.TbItemParamDubboService的变量 tbItemParamDubboService [INFO] 1 error [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11.888 s [INFO] Finished at: 2017-08-06T18:21:00+08:00 [INFO] Final Memory: 16M/90M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project xxx-manage: Compilation failure [ERROR] /E:/EclipseCodes2/xxx-parent/xxx-manage/src/main/java/com/xxx/manage/service/impl/TbItemParamServiceImpl.java:[70,57] 找不到符号 [ERROR] 符号: 方法 delById(long) [ERROR] 位置: 类型为com.xxx.dubbo.service.TbItemParamDubboService的变量 tbItemParamDubboService [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

解决办法:重新install一下

转载请注明原文地址: https://www.6miu.com/read-58107.html

最新回复(0)