仓库
maven中的坐标和仓库
1、坐标(由groupId、artifactId、version组成)。
2、构件通过坐标作为其唯一标识。
3、仓库:
-本地仓库。
-远程仓库:maven-model-builder-3.3.3.jar\org\apache\maven\model,
超级pom.xml文件,全球中央仓库地址:https://repo.maven.apache.org/maven2
-镜像仓库:/conf/setting文件:
<mirror>
<id>maven.net.cn</id>
<mirrorOf>central</mirrorOf>
<name>central mirror in china</name>
<url>http://maven.net.cn/content/groups/public</url>
</mirror>
4、修改本地仓库的位置:<localRepository>D:/Maven/repository</localRepository>
Ps:一旦配置了镜像仓库,那么先前的所有配置都会转到镜像仓库中。
linux下的maven位置:
/usr/local
但要修改配置文件,需要修改/etc/maven下的