简体   繁体   中英

Selenium - Maven Dependency -Failed to read artifact descriptor

I'm new to Maven, and programming in general. All i have done is created this project and added selenium and testng dependencies in the pom.xml file.

When i did the maven import, for some reason pom is throwing an error saying that it cannot read artifact descriptor for selenium jar. 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. 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.

Btw, when i run mvn install, i get a "BUILD SUCCESS"..so not sure what the deal is. Help is appreciated!

在此处输入图片说明

As mentioned here tick the option Setting>Maven>always update the snapshot. Maybe some files are cached on your system. for detail check this https://stackoverflow.com/a/45697349/8604768

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM