I just wanted to document this error on the internet. There was no much help or I didn’t search properly.
Answer :
Go to the the path where the maven-metadata-local.xml
is. Delete the project folder along with the xml
and build the project.
It worked for me!