如果您使用有关证书的maven和testng出现随机无用的错误

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 20:36   3213   0

这是我得到的错误

There was an error in the forked process
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
...

尝试使用Maven和surefire运行testng测试时,这对您毫无帮助。

要修复它,我更改了testng.xml文件中的xml标头。 叹。

没有理由使用这种东西。 Java编程的某些部分是垃圾箱,这就是一个很好的例子。 xml文件中的文本绝对不会导致此类错误。 只是Java / testng / maven / surefire的一部分完全失败了? 连锁店中的某个人实际上并不希望您使用他们的产品……谁知道失败的根源。

我将标题从testng网站上的标头更改为此

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >

而且没有更多的错误。 :(

from: https://dev.to//tonetheman/if-you-get-a-random-useless-error-using-mvn-and-testng-about-certs-2cf8

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP