Eclipse选用jee版本下载地址:
http://mirror.bit.edu.cn/eclipse/technology/epp/downloads/release/indigo/SR2/eclipse-jee-indigo-SR2-linux-gtk-x86_64.tar.gz
svn安装地址: http://subclipse.tigris.org/update_1.8.x
maven插件地址(按顺序安装):
http://m2eclipse.sonatype.org/sites/m2e
http://m2eclipse.sonatype.org/sites/m2e-extras
在使用Eclipse到时候,会报如下错误:
Failed to load JavaHL Library.
These are the errors that were encountered:
no libsvnjavahl-1 in java.library.path
no svnjavahl-1 in java.library.path
缺少subversion的javahl库,安装之:
yum install subversion-javahl.x86_64 #若不是64位的可以使用命令yum search subversion-javahl查询具体信息
查看subversion-javahl.x86_64的安装路径,使用命令:rpm -ql subversion-javahl.x86_64显示如下:
/usr/lib64/libsvnjavahl-1.la
/usr/lib64/libsvnjavahl-1.so
/usr/lib64/libsvnjavahl-1.so.0
/usr/lib64/libsvnjavahl-1.so.0.0.0
/usr/share/java/svn-javahl.jar
在Eclipse到启动配置文件eclipse.ini文件中添加如下变量:
-Djava.library.path=/usr/lib64/
重新启动,该错误消失!
但是可能会出现如下错误:
Incompatible JavaHL library loaded. 1.7.x or later required. 安装了javaHL仍然报版本低
打开Eclipse首选项,进入team-SVN,在设置里面的SVN接口中选择svnkit,确定,问题解决