基于SmartQQ协议的QQ自动回复机器人-1

0. 本项目的原始代码及我二次开发后的代码

1. 软件安装:【myeclipse6.0 + maven2】

0. https://blog.csdn.net/zgmzyr/article/details/6886440
1. https://blog.csdn.net/shuzhe66/article/details/45009175
2. https://www.cnblogs.com/whgk/p/7112560.html

<mirror>
      <id>nexus</id>
      <mirrorOf>*</mirrorOf>
      <name>Human Readable Name for this Mirror.</name>
      <url>http://127.0.0.1:8081/hzhang/content/groups/public/</url>
</mirror>
  1. 后来发现太麻烦,直接用eclipse加插件吧!
  2. 后来发现eclipse + jetty运行小薇项目有很大问题,又回到Myeclipse15+maven3.2.3+tomcat7的怀抱!

2. 对小薇机器人部署中遇到的错误(1):

使用maven部署小薇项目的报错的总结:

  • 第一类错误:
1.
Description	Resource	Path	Location	Type
ArtifactTransferException: Failure to transfer com.alibaba:fastjson:jar:1.2.7 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact com.alibaba:fastjson:jar:1.2.7 from/to central (http://repo.maven.apache.org/maven2): connect timed out	pom.xml	/xiaov-master	line 112	Maven Dependency Problem

2. 
Description	Resource	Path	Location	Type
ApiURL cannot be resolved	SmartQQClient.java	/xiaov-master/src/main/java/com/scienjus/smartqq/client	line 124	Java Problem

3. 
xxx faied  (比如:org.apache.maven.plugins:maven-resources-plugin:2.7:resources:default-resources:process-resources)

解决思路:maven依赖有问题,对比作者的教程,先添加完jar依赖,然后update maven project[请百度“eclipse update maven project”]
  • 第二类错误:
1. 
xxx.jar文件下载出错或者更新失败或者解析失败 [报错的中文我百度后翻译出来就这个意思] 

解决思路:删除那个那个xxx.jar文件,再次下载更新 

步骤如下:
根据报错的xxx.jar,先找到.m2目录(或者你的maven安装目录)下的repository【这一步可以用一款软件:search everything】,找到【错误中出现的xxx.jar文件所在的父目录】,删除这个目录,然后进入Myeclipse界面(或者eclipse界面),找到maven4Myeclipse(或者是maven)那个栏目,右键,找到一个条目“update project”
,即可解决。

3. eclipse中部署小薇机器人:

  • 报错:
eclipse中安装jetty:
1. https://www.cnblogs.com/nightswatch/p/4639687.html
2. 运行小薇项目,发现竟然报错是jetty,而我对jetty完全不熟,所以放弃了eclipse+jetty方案,打算下一步用myeclipse部署。
  • 后来回顾:
    我尝试失败了。由于eclipse自己组装插件之间都有牵连关系,不适合新手。而作者的论坛的教程中部署成功的例子是:Myeclipse14+小薇机器人【一个较低版本】;所以建议直接用(Myeclipse15+JDK8+maven3+tomcat7+xiaov-master-1.0)【我就是这个组合】
posted @ 2018-05-15 09:38  hzhang_NJU  阅读(567)  评论(0编辑  收藏  举报