简体   繁体   English

Eclipse Subversion存储库导入问题

[英]Eclipse Subversion Repository Import Issue

I'm having an issue with my Eclipse Subversion Repository. 我的Eclipse Subversion信息库有问题。 Obviously enough, I'm working on a project in which our teams most current additions are being uploaded to the repository. 显然,我正在一个项目中,我们的团队将最新添加的内容上传到存储库中。 I imported a folder from our repository named "Test", and later deleted it... Now I'm having issues importing the same folder. 我从我们的存储库中导入了一个名为“ Test”的文件夹,后来又将其删除了……现在在导入同一文件夹时遇到了问题。 When trying to import I get the following error: 尝试导入时出现以下错误:

'SVN Import' has encountered a problem. “ SVN导入”遇到问题。

 org.apache.subverison.javahl.ClientException: The process cannot access the file because another process has locked a portion of the file. svn: Can't read file 'C:\\Users\\Submersed\\workspace\\.metadata\\.lock': The process cannot access the file because another process has locked a portion of the file. org.apache.subversion.javahl.ClientException: The process cannot access the file because another process has locked a portion of the file. svn: Can't read file 'C:\\Users\\Submersed\\workspace\\.metadata\\.lock': The process cannot access the file because another process has locked a portion of the file. 

I've tried deleting the .metadata\\.lock file, and I've tried reinstalling eclipse and subversion entirely. 我尝试删除.metadata\\.lock文件,并尝试完全重新安装eclipse和subversion。 I have been able to import the data to an external drive, but it's a hassle to not be able to just store it on my local drive. 我已经能够将数据导入到外部驱动器中,但是无法仅将其存储在本地驱动器中是很麻烦的。

If anyone has an idea as to what the issue may be, please let me know. 如果有人对问题可能有什么想法,请告诉我。

Thanks! 谢谢!

You shouldn't check in the whole workspace. 您不应该签入整个工作区。 You should only check in the projects without the meta data and get the workspace generated. 您只应在没有元数据的情况下检入项目,并生成工作空间。 You could generate the project configuration with tools like maven and Maven to Eclipse . 您可以使用mavenMaven to Eclipse之类的工具生成项目配置。 So you could avoid problems with differnent paths, etc. 因此,您可以避免路径不同等问题。

If you however have to check in the whole workspace use command line tools. 但是,如果您必须检入整个工作区,请使用命令行工具。 Eclipse holds the lock file while your workspace is open, so you cannot overwrite that file while eclipse has opened it. 在工作区打开时,Eclipse将保留锁定文件,因此在eclipse打开文件时,您不能覆盖该文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM