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

本文记录了一个Maven项目的编译错误,主要问题是找不到方法insParamSelective和delById,这通常意味着接口和实现类不匹配或者类文件未同步更新。通过重新安装项目解决了该问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在做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一下

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值