1、settings.xml
(1)本地仓库
<localRepository>d:\temp\repo</localRepository>,用 <localRepository>括起来的表示本地仓库的位置。
(2)镜像源
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus-aliyun</name>
<url>https://maven.aliyun.com/nexus/content/groups/public\</url>
</mirror>
</mirrors>
阿里镜像
2、pom.xml相关依赖
<dependencies>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
<version>3.1.3</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdfs</artifactId>
<version>3.1.3</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>3.1.3</version>
</dependency>
</dependencies>