Issue
I have imported a Maven Java-selenium project and for some reason these dependencies aren't getting resolved. version I am using is 3.1.0 enter image description here . Java version is 1.8 . Appreciate any help.
Solution
Close the IntelliJ first - try to work in CMD. Remove settings.xml in your user directory if the file exists there.
settings.xml location is C:\Users\Nidhi\.m2 - in .m2 folder you can find the seetings.xml file
Add environment variables:- M2_HOME, MAVEN_HOME - the path for these two is the maven folder in your system In environment variable "Path" add path till bin folder of Maven. Eg:- C:\apache-maven-3.3.9\bin
Open CMD and cd to the folder where you have project
From here run mvn clean install
Answered By - Lisbon
Answer Checked By - Willingham (JavaFixing Volunteer)