从gitchina上看到适合的项目,选择该项目指定分支,比如下图中示例中的ciHelper,我们选择release1.0,

如何下载oschina源码并打包到maven本地仓库_git

点击zip按钮,进入下载页面,输入验证码,就可以将项目源码下载到本地了。

如何下载oschina源码并打包到maven本地仓库_源码下载_02

解压后,cd到ciHelper目录

D:\workshop\oscgit\fastjrun\ciHelper>mvn install
……
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] cihelper-parent .................................... SUCCESS [  0.163 s]
[INFO] MybatisEx .......................................... SUCCESS [ 45.342 s]
[INFO] base-common ........................................ SUCCESS [ 47.938 s]
[INFO] base-test .......................................... SUCCESS [ 19.533 s]
[INFO] thirdparty ......................................... SUCCESS [ 15.512 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:08 min
[INFO] Finished at: 2016-03-19T13:34:58+08:00
[INFO] Final Memory: 24M/226M