package xxx does not exist cannot find symbol

在Linux上部署服务时抛了大量的包找不到异常

[ERROR] /home/jenkins/agent/workspace/pipeline_p-h6sbk-4/src/main/java/com/UserServiceImpl.java:[3,28] package com.alibaba.fastjson does not exist

[ERROR] /home/jenkins/agent/workspace/pipeline_p-h6sbk-4/src/main/java/com/User.java:[9,2] cannot find symbol

[ERROR]   symbol: class Data

[ERROR]   location: class com.xxx

[ERROR] /home/jenkins/agent/workspace/pipeline_p-h6sbk-4/src/main/java/com/poly/notify/entity/danmi/DanMiVoiceCallBack.java:[3,14] package lombok does not exist

[ERROR] /home/jenkins/agent/workspace/pipeline_p-h6sbk-4/src/main/java/com/poly/notify/entity/danmi/DanMiVoiceCallBack.java:[9,2] cannot find symbol

[ERROR]   symbol: class Data

[ERROR]   location: class com.xxx

[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

这个问题就是maven的问题:

  1. 查看settings.xml文件是否配置。
  2. 查看settings.xml文件中的<localRepository>路径是否配置正确,<mirror>镜像地址是否正确,网络是否畅通。
  3. maven仓库中的jar包以及对应版本是否存在。
  4. pom.xml中配置的maven版本是否与Linux安装版本对应。
上一篇:分布式一致性协议之:Gossip(八卦)算法


下一篇:error: /lib64/libpthread.so.0: symbol h_errno