maven 编译出错,提示找不到符号

Ws月 2016-02-24 09:47:10
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building comm-ProxyConsumer 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ comm-ProxyConsumer ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ comm-ProxyConsumer ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 111 source files to--------\comm\ProxyConsumer\target\classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ comm-ProxyConsumer ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ comm-ProxyConsumer ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 111 source files to --------comm\ProxyConsumer\target\test-classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]------------------------.java:[12,24] 找不到符号
符号: 类 PwGeneralTest
位置: 程序包 mtx.pub.function
[ERROR]-----------------------.java:[12,24] 找不到符号
符号: 类 PwGeneralTest
位置: 程序包 mtx.pub.function
[ERROR]-------------------------.java:[12,24] 找不到符号
符号: 类 PwGeneralTest
位置: 程序包 mtx.pub.function
[ERROR]-----------------------------.java:[12,24] 找不到符号
符号: 类 PwGeneralTest
位置: 程序包 mtx.pub.function
[INFO] 4 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.489 s
[INFO] Finished at: 2016-02-24T09:38:35+08:00
[INFO] Final Memory: 21M/183M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on
project comm-ProxyConsumer: Compilation failure: Compilation failure:
[ERROR]-----------------.java:[12,24] 找不到符号
[ERROR] 符号: 类 PwGeneralTest
[ERROR] 位置: 程序包 mtx.pub.function
[ERROR]-------------------.java:[12,24] 找不到符号
[ERROR] 符号: 类 PwGeneralTest
[ERROR] 位置: 程序包 mtx.pub.function
[ERROR]-------------------.java:[12,24] 找不到符号
[ERROR] 符号: 类 PwGeneralTest
[ERROR] 位置: 程序包 mtx.pub.function
[ERROR]--------------------.java:[12,24] 找不到符号
[ERROR] 符号: 类 PwGeneralTest
[ERROR] 位置: 程序包 mtx.pub.function
[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
...全文
356 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
scxjwf 2016-02-24
  • 打赏
  • 举报
回复
maven install
bobolnear 2016-02-24
  • 打赏
  • 举报
回复
在执行一次 maven的编译,要连续2次执行就行了。

50,530

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧