tomcat8.5x导入到eclipse中https报错处理

如果想把tomcat8.5源码导入到eclipse中,按照官网的引导走还是很容易的。但是在执行ant ide-eclipse过程中,出现了类似下面的错误。

[get] Error getting http://downloads.sourceforge.net/cglib/cglib-nodep-2.2.3.jar to /Users/apple/Documents/workspace/tc8.5.x/tomcat-build-libs/download-1918381580.tmp

BUILD FAILED
/Users/apple/Documents/workspace/tc8.5.x/build.xml:2646: The following error occurred while executing this line:
/Users/apple/Documents/workspace/tc8.5.x/build.xml:2759: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
    at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketIm

引发这个问题原因,好像是sourceforge的证书不受信任,可是通过把sourceforge的证书导入到java证书库以及导入到macos钥匙串上面后还是不好用。于是乎通过分析build.xml文件,原来是build.properties里面指定了这个jar包的下载路径,这就简单了,https不好用,那我们就改成http的呗,在浏览器上访问build.properties上面的jar路径,找到最终的下载路径,改成http,再次ant ide-eclipse,大功告成。`

—– cglib, used by EasyMock, version 2.2 or later —–

cglib.version=2.2.3
cglib.home= base.path/cglib {cglib.version}
cglib.loc=http://nchc.dl.sourceforge.net/project/cglib/cglib2/2.2.3/cglib-nodep-2.2.3.jar
cglib.jar= cglib.home/cglibnodep {cglib.version}.jar`

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值