解决使用http代理同步时出现异常的方法
myeclipse svn插件subclipse使用http代理同步svn时出现异常
http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
开发环境:
myeclispe 10.6.2 +subclipse 1.8 + http代理上网
现象描述:
对项目进行“与资源库进行同步”时弹出对话框显示以下错误信息:
同步 SVNStatusSubscriber 时报告了错误。1 中的 0 个资源已经同步。
同步 /MMonitorLogistics 时发生错误:Error getting status for resource P/MMonitorLogistics org.apache.subversion.javahl.ClientException: svn: E175002: unknown host
svn: E175002: OPTIONS request failed on '/svn/DevelopmentProject/Project/MMoni.blogtorLogistics/trunk'
Error getting status for resource P/MMonitorLogistics org.apache.subversion.javahl.ClientException: svn: E175002: unknown host
svn: E175002: OPTIONS request failed on '/svn/DevelopmentProject/Project/MMonitorLogistics/trunk'
org.apache.subversion.javahl.ClientException: svn: E175002: unknown host
svn: E175002: OPTIONS request failed on '/svn/DevelopmentProject/Project/MMonitorLogistics/trunk'
org.apache.subversion.javahl.ClientException: svn: E175002: unknown host
svn: E175002: OPTIONS request failed on '/svn/DevelopmentProject/Project/MMonitorLogistics/trunk'
截图:
svn console输出信息:
svn: E175002: unknown host
svn: E175002: OPTIONS request failed on '/svn/DevelopmentProject/Project/MMonitorLogistics/trunk'
svn: E175002: unknown host
svn: E175002: OPTIONS request failed on '/svn/DevelopmentProject/Project/MMonitorLogistics/trunk'
cmproxy
截图:
解决方法:
- 打开C:\Users\Administrator\AppData\Roaming\Subversion, Administrator为当前登录用户名称;
- 编辑文件servers,在142行[global]下一行加入配置。
-
http-proxy-exceptions = 10.*, *.gmcc.net - http-proxy-host = cmproxy.gmcc.net
- http-proxy-port = 8081
- http-auth-types = basic
-
重新同步操作即可。
本文地址:http://www.45fan.com/dnjc/69405.html