Maven configuration | Selenium Forum
M
Posted on 11/03/2016
I have configured maven into my ecclipse but when I am adding a variable 'M2_REPO' it has already there in ecclipse.
My ecclipse details
Version: Mars.2 Release (4.5.2)
Build id: 20160218-0600
So I couldn't create one but I have created another variable like "M2_REPO1" and gave path as "C:/Users/sanjay/.m2/repository" but
it couldn't read any of my jars so I unable to create test using webdriver and annotations.
I removed that the variablethat I have created and the project itself is showing with wrong symbol.
How can I solve this Problem?
So I figured it out it must point to some classpath .If so what excat Variable_Name and Path should I give to read mu testng and seleniumHq jars.
I google and found to change windows-preferences-maven-usersettings but I see there The path
user settings as:C:\Users\sanjay\.m2\settings.xml
REIndex as:C:\Users\sanjay\.m2\repository
What should I change here?
Could you please help me .
Thank you in advance.

M
Replied on 11/03/2016

Last week, I too got the same problem. Then, I didn't set the M2_repo and it was working for me.


M
Replied on 11/03/2016

I also removed but it is throwing me a error.


M
Replied on 11/03/2016

send a screen shot


M
Replied on 12/03/2016

Hi Ashish,
Below are the Screenshots I have provided for maven.Could you please figure otherwise how should I reinstall.

Responsive image

M
Replied on 13/03/2016

right click on project>>maven>>update project.

Responsive image

M
Replied on 14/03/2016

I couldn't see maven under my project.Is there any other way to upgrade my project.

Responsive image

M
Replied on 14/03/2016

right click>>configure>>convert project to maven.

after that options will appear.


M
Replied on 15/03/2016

I have done what you said but still showing me the error which is cross symbol on MyMavenProject.


M
Replied on 16/03/2016

send a screenshot of apptest.java


M
Replied on 17/03/2016

Thank you Ashish ,I compiled it again in cmd and refershed it.It was solved.


M
Replied on 17/03/2016

But when I opened today I see red exclamatory mark on my project.

Responsive image

M
Replied on 17/03/2016

i thought it was solved?


M
Replied on 20/03/2016

solved Asish.Thank you so much