查看 G:\mavenk\apache-maven-3.3.3\conf\settings.xml 下的文件
1 <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
4 <!-- localRepository
5 | The path to the local repository maven will use to store artifacts.
6 |
7 | Default: ${user.home}/.m2/repository
8 -->
9
10 <localRepository>G:\mavenk\repository</localRepository> <!--指向 maven 的资源库 -->
eclipse 设置 window-->preferences-->Maven-->User Settings
指向maven的settinga.xml文件