[英]Selenium - Maven Dependency -Failed to read artifact descriptor
I'm new to Maven, and programming in general. 我是Maven的新手,也是一般的编程人员。 All i have done is created this project and added selenium and testng dependencies in the pom.xml file. 我所做的只是创建了这个项目,并在pom.xml文件中添加了硒和testng依赖项。
When i did the maven import, for some reason pom is throwing an error saying that it cannot read artifact descriptor for selenium jar. 当我执行maven导入时,出于某种原因pom抛出一个错误,表明它无法读取硒罐的工件描述符。 I have used the same dependencies in other projects and they seem to import just fine. 我在其他项目中使用了相同的依赖项,它们似乎可以很好地导入。
You can see the pom below in the screenshot. 您可以在屏幕截图中看到以下pom。 Sorry if this is a dumb question, but i honestly don't know what's wrong here, and i can't seem to find a solution with google searches. 抱歉,这是一个愚蠢的问题,但是老实说,我不知道这是怎么回事,而且我似乎无法找到Google搜索的解决方案。
Btw, when i run mvn install, i get a "BUILD SUCCESS"..so not sure what the deal is. 顺便说一句,当我运行mvn install时,我得到一个“ BUILD SUCCESS” ..所以不确定这是什么。 Help is appreciated! 感谢帮助!
As mentioned here tick the option Setting>Maven>always update the snapshot. 如此处所述,勾选设置> Maven>始终更新快照。 Maybe some files are cached on your system. 也许某些文件已缓存在您的系统上。 for detail check this https://stackoverflow.com/a/45697349/8604768 有关详细信息,请检查此https://stackoverflow.com/a/45697349/8604768
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.