简体   繁体   English

如何恢复maven项目的svn信息(url)

[英]How to restore svn information(url) of maven project

I have accidentally deleted .svn directory from my maven project. 我不小心从我的maven项目中删除了.svn目录。 Now when I started eclipse the projected shows no connections to svn repository. 现在,当我开始eclipse时,预计显示没有与svn存储库的连接。 I am not able to assign the svn url to the project. 我无法将svn url分配给项目。

How can I assign the repository url to the maven project in eclipse to be able to synchronize. 如何在eclipse中将存储库URL分配给Maven项目,以便能够进行同步。

First: make a backup. 第一:做备份。 (zip the current folder) (压缩当前文件夹)

Then: within eclipse you should be able to simply share the project (again) and select the SVN repository. 然后:在eclipse中你应该能够简单地共享项目(再次)并选择SVN存储库。 Eclipse usually syncs the sources and the repository. Eclipse通常会同步源和存储库。 Usually nothing gets lost in the process but better be safe and make a backup. 通常,在此过程中不会丢失任何内容,但最好保持安全并进行备份。

For maven no action should be required. 对于行家,无需采取任何措施。 There is the scm section in the pom.xml but that probably did not change. pom.xml中有scm部分,但可能没有改变。 As long as no plugin reads the SVN revision number or you do a release locally maven will be fine. 只要没有插件读取SVN修订版号或你在本地发布maven就可以了。

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

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