我一直在尝试导入 Tomcat Project from Github在 Eclipse 中, 但它没有作为 Java Project 导入。请解释将 Ant 项目从 Github 导入 Eclipse 的分步指南。
我尝试使用 this回答了关于 stackoverflow 的问题,但项目导入正常,但 git 属性丢失了。
最佳答案
尝试以下操作:
1. Open Eclipse, select File > Import > Git > Projects from Git
2. Select Existing Local Repository, click on next
3. Click on Add > Browse, select the directory where you have stored the repo, click on OK > Finish, and select the newly added repository and click on Next
4. Select "Import as General Project" > Next > Finish
5. Click on Window > Show view > Ant
6. Drag the build.xml file into the view, and click on the green play button. Things ought to build as well.
Reference (有屏幕截图,尽管他们在这里添加了一个在线的 git 存储库,而不是已经克隆在本地磁盘上)。
关于eclipse - 从 Github 导入 Ant 项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29725910/