The color of words in the pom.xml are all white and when i click the element of xml,it says "Cannot find declaration to go to".
I had tried all the suggestions others told me before,it still didn't work. Today I cut the pom.xml to other directory and then I cut it back. The pom.xml was recognized correctly.I cant believe it !I think it is IDEA bug!