About the solution that the pom of intellij ide2021 on the mac computer side cannot be updated with maven dependencies

First, open the IDE, click Maven on the right, and then click the tool above

Second, choose the second Maven setting

Third, jump here automatically after opening, check "Rewrite", and then copy this path.

Fourth, as shown below

Fifth, come to this .m2 folder, and then open the settings.xml file (you can edit it)

 Sixth, fill in the content on the way into this position.

<id>alimaven</id>
 
<mirrorOf>central</mirrorOf>
 
<name>aliyun maven</name>
 
<url>http://maven.aliyun.com/repository/public</url>
 
</mirror>

Remember to save. Then turn it off.

Seventh, go back to the IDE, open pom.xml, and paste the content in the box below.

The content is as follows:

<repositories>
<repository>
<id>alimaven</id>
<url>https://maven.aliyun.com/repository/public</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>alimaven</id>
<url>https://maven.aliyun.com/repository/public</url>
</pluginRepository>
</pluginRepositories>

Eighth, open maven on the right again, and click the circled update button. Then wait for it to download the undownloaded dependencies by itself.

 Done.

Guess you like

Origin blog.csdn.net/anything14/article/details/127822491