一般的maven项目都是有子父工程的,单独在eclipse中将子父工程的maven项目svn重新定位会报以下错误:
switch --relocate svn://1.2.3.4/trunk http://1.2.3.4/trunk D:/workspace/demo/demo-parent/demo-app
Invalid operation on the current working direction
svn: Cannot relocate 'D:/workspace/demo/demo-parent/demo-app' as it is not the root of working copy; try relocating 'D:/workspace/demo/demo-parent' instead
解决办法:
0.找到该工程本地目录,如下,右键点击空白地方,弹出菜单 TortoiseSVN-->Relocate
1.点击Relocate ,弹出重新迁移窗口,修改你的svn版本控件器地址,也就是你最新修改的svn服务器的ip,添加上即可,点击OK。
2.回到eclipse,将整个项目跟svn更新一下,Team-->更新,在SVN资源库窗口即可看到迁移的svn资源库位置