是否可以将Eclipse GWT项目放在EGit下?
是否可以将Eclipse GWT项目放在EGit下?
如果我选择“在项目的父文件夹中使用或创建存储库”选项,Eclipse 会显示“不建议在 Eclipse 工作区中创建存储库”并且不允许我进一步操作。
如果我取消选择此选项,它会将项目文件移动到 Git 存储库的单独文件夹中并破坏类路径。例如,Web 应用程序库条目仍然指向旧位置,并且在重新创建时不会修复它。
陷阱!怎么出去?
Is it possible to put Eclipse GWT project under EGit?
If I select an option "Use or create repository in parent folder of a project", Eclipse says "Creation of repositories in the Eclipse workspace is not recommended" and does not allow me to go further.
If I deselect this option, it moves the project files into a separate folder of Git repository and breaks the classpath. For example, Web App Libraries entry remains pointing to the old place and does not fix it upon recreate.
Trap! How to get out?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当它显示该警告时,您需要点击对话框底部的“创建存储库”按钮。这将允许您选择项目作为存储库并使用“完成”。
请参阅 EGit 用户指南/Repos 了解为什么最好使用外部库的讨论回购。
密码
When it shows that warning, you need to hit the "Create Repository" button at the bottom of the dialog. That will allow you to select your project as your repo and use Finish.
See EGit User Guide/Repos for a discussion on why it's better to have an external repo.
PW
您必须在项目视图中选择项目文件夹,然后右键单击“团队>添加”。较新的 Eclipse 版本中的“团队>添加到索引”。进行提交,Web 应用程序库就会自行修复。
You have to select project folder in the project view, then right click 'Team>Add'. 'Team>Add to index' in newer eclipse versions. Make a commit and the Web App Libraries fixes itself.