现在很多项目都用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: [email protected]: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
Eclipse+egit, import maven project from github
猜你喜欢
转载自john-doe.iteye.com/blog/1864686
今日推荐
周排行