I tried to set up Maven projects under my IntelliJ IDE. However, when I try to update the pom.xml file, I am getting this error. I tried deleting the .m2 repository under Users, made the changes under Build Tools for Maven. Still, the issue doesn't seem to get resolved.
Asked
Active
Viewed 2,182 times
1 Answers
0
You can try File -> Invalidate Caches -> Invalidate and Restart so IntelliJ will try index again to the resources.

Lazaros Chatzimichalakis
- 111
- 6
-
Are you able to answer this question by any chance? https://stackoverflow.com/questions/71104529/can-maven-run-both-cucumber-junit-and-testng-runners-together – The man Feb 13 '22 at 20:41
-
I tried that too, but still no luck. – vamsin Feb 14 '22 at 11:24
-
When you try mvn clean install the build is successful or not? I'm trying to see if it's an IntelliJ problem or an actual maven problem because of a jar that does not exist in the m2 repo. – Lazaros Chatzimichalakis Feb 15 '22 at 08:45
-
Actually, mvn command is not working only. It shows the 'command not found' error. – vamsin Feb 16 '22 at 08:28
-
I figured out why it went wrong. Apparently, the maven-version folder hadn't been configured to PATH variable on the System Variables. – vamsin Feb 16 '22 at 11:27
-
So IntelliJ could not use mvn to install the dependencies because maven was not configured as system variable. – Lazaros Chatzimichalakis Feb 17 '22 at 13:49