`

eclipse中安装svn插件

    博客分类:
  • Java
阅读更多
以前提到过SVN版本控制器和客户端的安装和配置,这里再在说一下在编译器中怎么使用SVN,使其既可以单独使用,也可以配合SVN客户端一起使用。由于编译器种类众多,插件种类也不同,这里只简单介绍下Eclipse的插件安装。我用的版本是Eclipse3.2.2+MyEclipse_5.1.1,由于本身只有CVS而没有集成SVN,所以要想使用SVN做版本控制只好装一个Eclipse插件Subclipse,Subclipse的详细安装过程在其官方网站 http://subversion.tigris.org写的很清楚,还带配图,我就直接copy了:

一、Install Subclipse in Eclipse 3.x(安装)

Step 1:

Begin the installation from the Eclipse Help menu item.

Step 2:

This screenshot show the screen as it initially comes up. In this case you will need to change the radio button to indicate that this is a new install.

Step 3:

This screen will vary depending on the features you have installed already. You want to click on the New Remote Site button. If you are behind a proxy and the Eclipse install mechanism does not work, then you can download a zipped version of the update site and then click the New Local Site button instead.

Step 4:

This screen is showing the New Remote Site dialog, filled in with the correct information to install Subclipse

Name: Subclipse 1.2.x (Eclipse 3.2+)
    URL:  http://subclipse.tigris.org/update_1.2.x
    
    Name: Subclipse 1.0.x (Eclipse 3.0/3.1)
    URL:  http://subclipse.tigris.org/update_1.0.x

Step 5:

When you first come back to this screen, the site you added will NOT be selected. Be sure to select it before clicking Next.

Step 6:

This next screen shows all of the features that are available to install.

Step 7:

Click the button to accept the license agreement.

Step 8:

Confirm the install location

Step 9:

There is an Eclipse preference to turn off this next dialog. I have never seen a signed feature. Not even Eclipse.org nor IBM sign their features.

Step 10:

Just a screenshot of the in-process installation.

Step 11:

Eclipse needs to be restarted after installing Subclipse.

Step 12:

Finally, after restarting Eclipse, the first thing you will typically want to do is open the Subclipse Repository perspective where you can define your repositories. Be sure to also check the online help as well as the Subclipse preferences located under Team -> SVN.

OK

到此你的插件已经安装完毕了,说明一下,在Step 5中选择的是在线安装,也可以在http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91下载后进行本地安装,本地安装选择New Local Sit...,然后找到解压出来的那个文件夹,后面的都一样了。

卸载的方法也很简单,也是点击 Help => Software Updates => Manage Configuration

按上图操作就可以卸载了。

二、Use Subclipse in Eclipse 3.x(使用)

       先向版本库中加入一个Eclipse工程,我这里是随便搭建的一个WEB工程 SVNtest ,将它导入版本库svn://localhost/ts(这使用本机装的版本库,其他机器就要打ip地址,之前说过)。导入后用版本库浏览器找到你导入的工程目录,把其下WebRoot\WEB-INF\classes目录删掉(注意:不删出以后会报错,原因后面再讨论)这些初始化的操作都用客户端工具完成的,毕竟插件的功能还不是那么强大。

 

做好以上的准备后打开Eclipse编译器,点击编译器右上角的Open Perspective 打开SVN资源库界面,新建一个资源库

       选择资源库的位置,这里我们就用刚才搭好的 svn://localhost/ts 作为工程目录,点击Finish后如果成功则会看到版本服务器中工程的树形结构了(可能需要用户密码验证)。在svn://localhost/ts 根目录上点右键,选择“验出”(英文版的可能叫 Check Out),在弹出窗口中选择“作为空间的项目验出”,下边的项目名称随便叫,我这里还是用 SVNtest 作为项目名称。

 

       一切没有问题了点击Finish。之后它就会从服务器上把工程下到你本地了。好啦,来到Eclipse编辑栏会发现刚才下的工程文件都会带有SVN版本控制标记了,再去Workspace看看,也会发现下载的工程文件夹,并且也有控制标记。 而且里我们会发现在SVN控制下的文件多出来一个Team选单,打开一看原来就是一个客户端工具呀,提交,更新,同步,合并,切换……我们再熟悉不过了,自己试试吧 ^_^。

 

 

       顺便说一下刚才为什么要删除class目录,起初我没有删掉它,更改提交没有问题,但在更新时总是报错:……Working copy not locked; this is probably a bug, please report svn:……,提示就是class目录下的.svn有毛病,到http://www.tigris.org查找解决方法,有一段描述:

This message is coming straight out of the Subversion library, so technically it is Subversion asking you to report the problem to them. This error message is kind of their general error message when something really unexpected happens. In the case of Eclipse, the problem is almost always one specific thing. The problem is that your Eclipse build folder was versioned and added to your repository. What happens is that when Eclipse does a full build it will delete everything in this folder, including the ".svn" metadata folder. When Subversion cannot find this folder it issues the above error.
The solution is to delete this folder from your repository, which you can do from the SVN Repositories view. Then try deleting the folder from your working copy and perforiming an update. You might need to checkout your project again. Once you have a valid project again, be sure to add the build folder to the svn:ignore property of its parent folder so that the problem does not happen again.
If this is not your problem, then as best as you can try to figure out what might have led up to having this problem and report it on th Subversion users@subversion.tigris.org mailing list

 

大意:重新部署工程时会将文件夹WEB-INF/classes下的内容全删了,包括".svn"这个文件夹,从面导致SVN找不到这个文件夹的信息,于是报错。 解决的方法是在SVN仓库内将classes下的内容清空,然后在确保本地工程已完全提交的情况下,将本地工程包括文件删除,再从SVN仓库中重新取出。 导致此问题的原因善不明确,估计是往这个文件夹手动添加了文件。

安装方面就介绍到此吧,如果有什么问题在联系我吧。

 

转自:http://hi.baidu.com/firyan/blog/item/fe18b0c57cb3d7ae8326ac65.html

分享到:
评论

相关推荐

    Eclipse中安装SVN插件

    ### Eclipse中安装与使用SVN插件:Subclipse与Subversive详解 #### 安装SVN插件的重要性 在软件开发过程中,版本控制是一项至关重要的任务,它帮助团队成员管理代码变更,确保项目的可追溯性和协作性。Subversion...

    eclipse安装svn插件

    在Eclipse中安装SVN插件可以方便地在IDE内实现版本控制操作。下面我们将详细介绍如何在Eclipse中安装SVN插件。 首先,我们需要获取SVN插件。通常,这种插件是通过Eclipse的内置市场或者下载独立的安装包来安装的。...

    在线为Eclipse安装SVN插件

    以下是在Eclipse中安装SVN插件的步骤: 1. 启动Eclipse IDE。 2. 打开"帮助"菜单,选择"Eclipse Marketplace"选项。这将打开一个新的视图,展示可供下载的插件列表。 3. 在Marketplace的搜索框中输入“SVN”,然后...

    Eclipse中的svn插件

    在Eclipse中安装svn插件的步骤一般如下: 1. **下载插件**:首先,你需要从官方或者可靠的第三方源下载对应版本的svn插件,如"site-1.0.6"这样的资源包。 2. **解压文件**:将下载的压缩包解压到一个临时目录,...

    Eclipse安装svn插件jar

    在Eclipse中安装SVN插件,可以帮助开发者方便地进行版本控制操作,如提交、更新、查看历史记录等。在本教程中,我们将详细介绍如何在Eclipse或MyEclipse中安装SVN插件,以及涉及到的相关文件及其作用。 1. **安装...

    eclipse离线按照svn插件

    以下将详细介绍如何在Eclipse中离线安装SVN插件。 首先,我们需要准备SVN插件的离线安装包。通常,你可以从插件开发者或第三方网站下载。一个常见的SVN插件是Subversive,它有多个提供商,例如“Polarion Software...

    eclipse 中文svn插件

    在Eclipse中安装SVN插件通常有两种方式:一是通过Eclipse的内置市场(Eclipse Marketplace)搜索并安装,二是手动下载插件包,然后通过Eclipse的“Install New Software”功能导入。对于中文版插件,可能需要用户...

    eclipse中svn插件

    在本文中,我们将深入探讨如何在Eclipse集成开发环境中安装和使用SVN插件,以实现版本控制功能。首先,我们需要了解Eclipse和SVN的基本概念。 Eclipse是一款开源的、跨平台的Java应用程序集成开发环境(IDE),广泛...

    eclipse中安装的svn插件(压缩文件)

    本篇文章将详细解释如何在Eclipse中安装SVN插件及其相关知识点。 首先,我们需要了解SVN的基本概念。SVN是一种集中式版本控制系统,它允许团队成员在共享存储库中存储、管理和跟踪代码变更。通过版本控制系统,...

    eclipse-SVN插件

    安装Eclipse SVN插件通常有以下步骤: 1. **下载插件**:可以从Eclipse Marketplace或者官方网站下载Subversive或Subclipse这两款常用的SVN插件。 2. **安装插件**:在Eclipse中选择“Help” > “Eclipse ...

    svn插件 MyEclipse和Eclipse svn插件

    在SVN插件中,ANTLR可能用于解析SVN的命令行接口或协议。JAVAHL(JavaHL)是SVN的JNI(Java Native Interface)库,它提供了一个与SVN客户端库直接交互的Java接口。某些插件可能选择使用JAVAHL作为与SVN服务器通信的...

    eclipse的svn插件

    本文将详细介绍如何在Eclipse中安装和使用SVN插件。 首先,我们需要了解SVN的背景。Subversion是一种集中式的版本控制系统,用于管理项目源代码的历史版本,允许团队成员协同工作,同时保持代码的完整性和一致性。...

    eclipse-svn-plugin svn插件

    在Eclipse中安装SVN插件后,开发者可以享受到以下功能: 1. **代码版本管理**:通过SVN插件,开发者可以将源代码存储在一个中央仓库中,记录每一次修改,确保每个版本的可追溯性。这有助于团队成员之间同步代码,...

    Eclipse安装上如何SVN插件

    本文将主要介绍如何在 Eclipse 开发环境中安装 SVN 插件,以及 Git 与 SVN 的主要区别。 首先,我们来探讨一下 Git 和 SVN 的差异: 1. **离线功能**:Git 的一大优势在于其离线工作能力。用户可以在没有网络连接...

    Eclipse安装SVN插件.docx

    在这篇文章中,我们将详细介绍如何在 Eclipse 中安装 SVN 插件,以便更好地管理代码版本。 什么是 SVN? SVN(Subversion)是一种版本控制系统,允许多个开发者同时合作开发项目,追踪代码变化,避免代码冲突。SVN...

    在eclipse中添加SVN插件步骤

    本文将详细介绍如何在Eclipse集成开发环境中安装Subversion (SVN) 插件,以便开发者能够更方便地进行版本控制管理。此外,还将提供一些解决安装过程中可能出现问题的方法,以及如何在Eclipse中添加SVN资源库的具体...

    svn插件压缩包+eclipse中如何安装svn插件

    svn插件压缩包 eclipse中如何安装svn插件 1.首先找到eclipse根目录(D:\software\eclipse) 2.创建links,myplugins文件夹(D:\software\eclipse\links,D:\software\eclipse\myplugins) 3.进入myplugins文件夹,...

    Eclipse离线安装SVN插件,将该文件解压后直播复制到你Eclipse安装目录下的dropins目录里即可。

    Eclipse离线安装SVN插件,将该文件解压后直播复制到你Eclipse安装目录下的dropins目录里即可。比如说你eclipse安装在 D:\eclipse\ ,你解压后将subclipse下的文件拷贝到下面目录里重新Eclipse就可以了。D:\eclipse\...

Global site tag (gtag.js) - Google Analytics