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>
- 后來發現太麻煩,直接用eclipse加插件吧!
- 后來發現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 Problem2.
Description Resource Path Location Type
ApiURL cannot be resolved SmartQQClient.java /xiaov-master/src/main/java/com/scienjus/smartqq/client line 124 Java Problem3.
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)【我就是這個組合】