Eclipse设置代理上网

时间:2017-07-31 14:36:42   收藏:0   阅读:1001

一、如果在内网开发项目,因为电脑不能上网,可能会出现在导入开源框架的jar包后,配置xml文件是,不出现语法检测和语法提示,Eclipse也提示告警:

no grammar constraints (dtd or xml schema) referenced in the document


解决方法1 导入xml的相关约束

 xml-->xml catalog ,增加User Specified Entries


解决方法2:让Eclipse设置代理上网

window-->preferences-->general-->network connections 

选中 manual proxy configuration: 依次填入http proxy 和https proxy以及port

另外,如果代理需要用帐号和密码就需要选中 Enable proxy authentication,

然后填上 user name  及password  

Active Provider:选择Manual

Proxy bypass:过滤到内网ip,如git服务器,否则设置代理之后,无法从git服务器上pull和push代码



本文出自 “小鱼的博客” 博客,谢绝转载!

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!