1、自定義maven的本地倉庫位置
在maven的conf文件夾下的settings.xml中的<settings>子節點添加
<localRepository>D:\repository</localRepository>
2、Maven中的坐標庫和倉庫
坐標
構件
倉庫
本地倉庫和遠程倉庫
鏡像倉庫
<mirror> <id>nexus-aliyun</id> <mirrorOf>*</mirrorOf> <name>nexus aliyun.</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror>
maven-model-builder-3.3.9.jar\org\apache\maven\model\pom-4.0.0.xmlMaven提供的超級pom,所有的pom都會繼承該pom
<repositories> <repository> <id>central</id> <name>Central Repository</name> <url>https://repo.maven.apache.org/maven2</url> <layout>default</layout> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories>