Idea creates a maven project and configures multiple warehouses.

The way to view maven information in IDEA is:
open File -> Settings-> search maven;

insert image description here

The default maven repository

Use Idea to create a maven project, the configuration file in the maven installation directory used by default; if you need multiple warehouses, you need to modify settings, xml or create a new settings.xml file, which can be specified in idea;

It needs to be explained that it is not acceptable to directly add the mirro attribute in mirrors;
for private servers that require a username and password, it needs to be configured in the server

focus first

The core configuration file is as follows:

Maven configures the settings.xml of multiple warehouses

<?xml version="1.0" encoding="UTF-8"?>

<settings xmlns=

Guess you like

Origin blog.csdn.net/weixin_42551921/article/details/127565988