在 Eclipse 中的 SVN 中提交操作失败
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8003590/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Commit Operation Failed in SVN in eclipse
提问by arsenal
I am trying to checkin the project in to SVN repository. So I right click on the project then selected Team then Commit. And when I do commit I get--
我正在尝试将项目签入到 SVN 存储库。所以我右键单击项目然后选择团队然后提交。当我提交时,我会得到——
Some of selected resources were not committed.
svn: Commit failed (details follow):
svn: Working copy 'C:\workspace\crawler4j\target' is missing or not locked
Any suggestions how to overcome this will be appreciated,
任何如何克服这一点的建议将不胜感激,
采纳答案by David W.
Sometimes, it's simply easier to open a Subversion command line client and take a look at that. I suggest that you install a command line client, go to the directory, and do a svn status. I would also look at svn infoon the various directories and files and make sure they're all on the same working directory. (You can do a svn status -vto get that information).
有时,打开 Subversion 命令行客户端并查看它会更容易。我建议你安装一个命令行客户端,进入目录,然后做一个svn status. 我还会查看svn info各种目录和文件,并确保它们都在同一个工作目录中。(您可以执行 asvn status -v来获取该信息)。
My feeling is that the targetdirectory should not be added or have been added to your project. This directory in Maven is used for built objects which should not be committed into your Subversion repository. Even many Ant build scripts follow Maven in this.
我的感觉是该target目录不应该添加或已添加到您的项目中。Maven 中的这个目录用于构建不应提交到您的 Subversion 存储库的对象。在这方面,甚至许多 Ant 构建脚本都遵循 Maven。
So, what is the status of the targetdirectory? What happens when you do an update on the directory before committing your changes? (I believe it's Team->Update).
那么,target目录的状态是什么?在提交更改之前对目录进行更新时会发生什么?(我相信是Team->Update)。
回答by gencay
回答by Nikolay Frick
In Eclipse Kepler try to run Team>cleanup
在 Eclipse Kepler 中尝试运行 Team>cleanup

