I have changed war to pom, but I am getting the following error:
Project configuration is not up-to-date with pom.xml.
Run Maven->Update Project or use Quick Fix.
How can I solve this error?
Assuming you are using Eclipse, you right click the pom, choose Maven --> Update Project.