Maven介绍
- Maven是构建项目的工具,可以管理项目中的jar包
- Maven仓库:存放构件(jar包和插件)的位置
本地仓库:默认是 ~/.m2/repository
远程仓库:中央仓库(官网)、镜像仓库、私服仓库
官网
Maven仓库配置
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">
<localRepository>D:/Maven/repoistory</localRepository>
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
</mirrors>
</settings>