The specific configuration and use of Maven

1. Open File in the upper left corner of Idea

 

2.Search Maven

(In general, you can use Maven that comes with Idea by default without having to download it yourself)

(The settings.xml file needs to be downloaded from the Internet by yourself (there are default foreign paths, and domestic faster Alibaba ones), and then put it at the default path in the picture above)

 

3. Use Idea to open the settings.xml file and make modifications.

 

(<mirror>
   <id>ali</id>
   <name>ali Maven</name>
   <mirrorOf>*</mirrorOf>
   <url>https://maven.aliyun.com/repository/public/</url>
</mirror>

This is a download path from Ali)

(

<mirror>
   <id>nexus-pentaho</id>
   <mirrorOf>central</mirrorOf>
   <name>Nexus pentaho</name>
   <url>https://nexus.pentaho.org/content/repositories/omni/</url>
</mirror>
This path can download Kettle's jar package dependency, which is the configuration file ofmaven to add a private server address.     
)

(The following is the entire content of the settings file, you can also create a settings.xml file yourself)

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

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

	<pluginGroups>
	</pluginGroups>

	<proxies>
	</proxies>

	<servers>
	</servers>

	<mirrors>
		<mirror>
			<id>ali</id>
			<name>ali Maven</name>
			<mirrorOf>*</mirrorOf>
			<url>https://maven.aliyun.com/repository/public/</url>
		</mirror>
		<mirror>
			<id>nexus-pentaho</id>
			<mirrorOf>central</mirrorOf>
			<name>Nexus pentaho</name>
			<url>https://nexus.pentaho.org/content/repositories/omni/</url>
		</mirror>
	</mirrors>

	<profiles>
	</profiles>

	<activeProfiles>
	</activeProfiles>

</settings>

Guess you like

Origin blog.csdn.net/m0_71202849/article/details/127865285