`
john_doe
  • 浏览: 11054 次
社区版块
存档分类
最新评论

Eclipse+egit, import maven project from github

 
阅读更多

现在很多项目都用Github了,而且github有离线编程和开源项目的pull request的功能。因此坚决学习github了

可是,当我们从Github上面把一些maven项目的代码拉下来之后。却发现在Eclipse里面没办法导入maven项目。

现在分享一下怎么在Eclipse里面导入Git的Maven项目。并以我的一个开源项目为例:

1. Eclipse marketplace 中安装egit. 

2. Eclipse -> Import , 选择 Project from Git

3. Click the Next and choose the URI 

4. URI: git@github.com:apdplat/APDPlat.git  (Protocol 中选择 https或者 ssh, 不过ssh要另看密钥的创建内容)

点击next

4.1 将下载回来的project放在中workspace单独文件夹中

4.2. 建议使用ssh, 如果使用ssh.用户要保持是git

5. 选中master -> Next -> Import as general project -> Finish

6. Eclipse从github上进行下载git

7. mvn eclipse:eclipse

    mvn install 就只可以import existing protect了。不然无法生成project

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics