一、本地仓库
Maven本地仓库的默认位置为
C:\Users\Administrator.m2\repository
repository 即为仓库,在项目构建时,Maven会自动向该文件夹下载项目所需jar包。
如果想设置其他位置可以在{MAVEN_HOME}\conf\setting.xml中添加如下代码设置仓库位置为F:\repository
<settings><!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
| Default: ~/.m2/repository
<localRepository>/path/to/local/repo</localRepository>
--><localRepository>F:\repository</localRepository>
二、中央仓库
中央仓库是Maven官方提供的下载jar包的网上位置,网址为
http://repo1