Eclipse Subversion存储库导入问题

时间:2012-12-02 07:59:23

标签: java eclipse svn subclipse

我的Eclipse Subversion存储库存在问题。显然,我正在开展一个项目,在这个项目中,我们的团队最新添加的内容将被上传到存储库。我从我们的存储库中导入了一个名为“Test”的文件夹,后来将其删除了......现在我在导入同一个文件夹时遇到问题。尝试导入时出现以下错误:

  

'SVN Import'遇到了问题。

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.  

我尝试删除.metadata\.lock文件,我尝试完全重新安装eclipse和subversion。我已经能够将数据导入外部驱动器,但是无法将其存储在本地驱动器上是一件麻烦事。

如果有人知道问题可能是什么,请告诉我。

谢谢!

1 个答案:

答案 0 :(得分:1)

您不应该检查整个工作区。您应该只检查没有元数据的项目并生成工作区。您可以使用mavenMaven to Eclipse等工具生成项目配置。因此,您可以避免使用不同路径等问题。

但是,如果您必须使用命令行工具检入整个工作区。 Eclipse在您的工作区打开时保存锁定文件,因此在eclipse打开它时您无法覆盖该文件。