由于“活动 git 存储库”,Eclipse Java 未构建
我在 Eclipse 中的 java 项目中遇到以下错误:
The project was not built due to "Folder contains an active Git repository.
The folder cannot be moved, renamed or deleted until the team provider is disconnected.". Fix the problem, then try refreshing this project and building it since it may be inconsistent
有什么想法吗?
这是一个Processing.org 项目,它是在我将.jar 外部库文件添加到构建路径后启动的。
更新: 我尝试过提交 git 控制的工作,但这没有帮助。
更新2: 我尝试将工作推送到 github,删除原始文件夹和 git repo,删除项目的所有元数据,然后将其全部克隆并再次将其添加到 Eclipse,但再次没有成功,错误又回来了。
I've got the following error in a java project in Eclipse:
The project was not built due to "Folder contains an active Git repository.
The folder cannot be moved, renamed or deleted until the team provider is disconnected.". Fix the problem, then try refreshing this project and building it since it may be inconsistent
Any ideas?
It's a Processing.org project and it started after I added a .jar external library file to the build path.
Update:
I've tried committing the git controlled work but that doesn't help.
Update 2:
I've tried pushing up the work to github, deleting the original folder and git repo, deleting all the metadata for the projects and then cloning it all and adding it to Eclipse again but again with no success, error comes back.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
刚刚遇到了同样的问题。右键单击项目属性,Team ->断开。该错误与 git 问题有关,与已修改的资源有关。只需断开与 git 存储库的连接,然后再次连接(团队->共享项目),错误就会消失。
Just had the same problem. Click right on project properties, Team -> Disconnect. The error is related to a git issue, related to resources that have been modified. Just disconnect from the git repository, and then connect again (Team->Share project), the error will disappear.
解决了。我刚刚创建了一个新的处理项目,然后将当前项目中的所有内容复制并粘贴到新的处理文件夹结构中(包括仅复制并粘贴我的 .git 文件夹),最后将 .jar 重新添加到构建路径。奇怪的。
Solved. I just created a new processing project and then copied and pasted everything from the current project into the new processing folder structure (including just copying and pasting my .git folder), before finally re-adding the .jar to the build path. Odd.
我断开连接,但仍然遇到同样的问题。因此,关闭 Eclipse 进入该文件夹并手动删除文件。然后效果很好。
I disconnected, but still had same issue. So, closed Eclipse went to the folder and deleted files manually. Then it worked fine.