[英]Checkout maven project from SCM: disconnect and merge
Whenever checking out Maven project from svn server in Eclipse, it creates a new folder like maven.xxxxxxxxxxxx
under the target workspace. 每当从Eclipse中的svn服务器中检出Maven项目时,它都会在目标工作区下创建一个新文件夹,例如
maven.xxxxxxxxxxxx
。 After specific time, it disconnected from SVN server. 经过特定时间后,它与SVN服务器断开连接。
My question is when the new checkout process is started again:- 我的问题是新的结帐流程何时再次开始:-
Can the next checking-out process merge to one of the existing folder maven.xxxxxxxxxxxx
? 下一个签出过程可以合并到现有文件夹
maven.xxxxxxxxxxxx
吗?
Any input would be appreciated!! 任何输入将不胜感激!
No, not directly. 不,不是直接。 This happens if something stops the import step.
如果某些操作停止了导入步骤,则会发生这种情况。 While I can not tell you wat exactly went wrong in your case, I can tell you how to solve it:
虽然我不能告诉您wat在您的情况下确实出了问题,但我可以告诉您如何解决:
Rename the maven.xxxxx
folder in your workspace to the real project name. 将工作区中的
maven.xxxxx
文件夹重命名为真实的项目名称。
The select File -> Import... -> Existing Maven Project
and choose the project folder. 选择
File -> Import... -> Existing Maven Project
然后选择项目文件夹。 The project will appear in your workspace as maven project. 该项目将作为Maven项目出现在您的工作区中。
Depending on your eclipse configuration and plugins environment, you might also need to right-click on your new project and select Team -> Share... -> SVN
(if there is a long list of options under Team
, it is already correctly identifed as SVN project). 根据您的Eclipse配置和插件环境,您可能还需要右键单击新项目,然后选择
Team -> Share... -> SVN
(如果Team
下有很长的选项列表,则已经正确识别了作为SVN项目)。
Update 更新
If your maven.xxxx
folder is empty, than you seem to have connection problems. 如果您的
maven.xxxx
文件夹为空,则似乎存在连接问题。 Split the checkout and the import part: 拆分结帐和导入部分:
right-click -> Configure -> Convert to Maven project
(exact command may vary with your m2e version). right-click -> Configure -> Convert to Maven project
(确切的命令可能会因您的m2e而异版)。 If everything elese fails, try to checkout your project using TortoiseSVN (on Windows) or the commandline and doing "import -> existing maven project" afterwards. 如果一切都失败了,请尝试使用TortoiseSVN(在Windows上)或命令行检出您的项目,然后再执行“导入->现有的maven项目”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.