本文阅读量 次
1. Maven¶
1.1 关于 Mirror¶
1.2 关于 settings.xml¶
1.2.1 如何在命令行中制定 settings.xml 文件¶
mvn clean --global-settings c:\ global\settings.xml
1.2.2 基本结构¶
settings.xml
- <localRepository/> 本地仓库设置
- <interactiveMode/>
- <usePluginRegistry/>
- <offline/>
- <proxies> 代理相关设置
- <proxy>
- <servers> 发布服务器设置
- <server>
- <mirrors> 镜像服务器设置
- <mirror>
- <profiles> Profile 设置
- <profile>
- <activation>
- <activeByDefault/>
- <jdk/>
- <os>
- <property>
- <file>
- <properties>
- <key>value</key>
- <repositories>
- <repository>
- <id/>
- <name/>
- <url/>
- <layout/>
- <releases>
- <snapshots>
- <pluginRepositories>
- <pluginRepository>
- <id/>
- <name/>
- <url/>
- <layout/>
- <releases>
- <snapshots>
- <activeProfiles/>
- <pluginGroups/>
1.2.3 Maven 查询路径的顺序¶
- effective settings:
- Global settings.xml
- User settings.xml
- local effective build POM:
- Local pom.xml
- Parent POMs, recursively
- Super POM
- effective POMs from dependency path to the artifact.
1.3 Maven 仓库¶
1.3.1 Maven 仓库分类¶
1.3.2 如何制定 Local 仓库¶
1.3.3 如何制定 Remote 仓库¶
1.4 参考¶
- https://howtodoinjava.com/maven/change-local-repository-location/ ⧉
- https://howtodoinjava.com/maven/local-remote-central-repositories/ ⧉
- https://maven.apache.org/guides/mini/guide-multiple-repositories.html ⧉
- https://maven.apache.org/ref/3.9.3/maven-settings/settings.html ⧉
- https://maven.apache.org/guides/mini/guide-mirror-settings.html ⧉
- 仓库管理软件列表 https://maven.apache.org/repository-management.html ⧉