I just started to learn the framework recently, and every time I configure it in the pom.xml file, the corresponding file will not appear in the "External Libraries" on the left. Having been troubled by this problem for several days, I finally found a solution, which is also very simple.
problem
After creating the Maven project in IDEA, configure the pom.xml file
and then look at the project list on the left
. It should be normal, but mine only has jdk, and the following files do not exist
Solution 1
Right click "Project Name" —> Maven —> Reload project
Solution 2
If it still doesn't work
It may be that the domestic mirror is not set when configuring Maven (here, choose to set as the mirror of Alibaba Cloud).
As mentioned in this article, you can refer to: Maven configuration
or just look at the following part.
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
</mirrors>