由于“活动 git 存储库”,Eclipse Java 未构建

发布于 2025-01-02 15:01:27 字数 534 浏览 1 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

最初的梦 2025-01-09 15:01:28

刚刚遇到了同样的问题。右键单击项目属性,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.

π浅易 2025-01-09 15:01:28

解决了。我刚刚创建了一个新的处理项目,然后将当前项目中的所有内容复制并粘贴到新的处理文件夹结构中(包括仅复制并粘贴我的 .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.

音栖息无 2025-01-09 15:01:28

我断开连接,但仍然遇到同样的问题。因此,关闭 Eclipse 进入该文件夹并手动删除文件。然后效果很好。

I disconnected, but still had same issue. So, closed Eclipse went to the folder and deleted files manually. Then it worked fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文