Phenomenon:
1. View the properties of the Module (F4), you can see that there is no dependency on any local library:
2. There are also errors in the dependencies of the Maven project
Solution:
1. Open the output information of maven as DEBUG, and re-compile through maven
Get output warning message similar to:
[WARNING] The POM for org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:jar:1.0.1 is invalid, transitive dependencies (if any) will not be available: 1 problem was encountered while building the effective model for org.apache.geronimo.specs:geronimo-stax-api_1.0_spec:1.0.1 [FATAL] Non-parseable POM C:\Users\ABC\.m2\repository\org\apache\geronimo\genesis\config\config\1.1\config-1.1.pom: attribute value must start with quotation or apostrophe not j (position: TEXT seen <html>\n<script language=j... @2:19) @ C:\Users\GSP\.m2\repository\org\apache\geronimo\genesis\config\config\1.1\config-1.1.pom, line 2, column 19
2. Delete the directory C:\Users\ABC\.m2\repository\org\apache\geronimo\genesis\config\config\1.1
3. Re-import the project (maven-->reimport) and it will return to normal.
The reason is that when building dependencies, as long as one has an error, all of them will be canceled.
Reference: http://stackoverflow.com/questions/11454822/import-maven-dependencies-in-intellij-idea