mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 16:30:29 +08:00
e8672a3c7b
Former-commit-id: dc30d42a8c55ed8b2382a41dc2434233fbed9930
61 lines
2.4 KiB
XML
61 lines
2.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<!--
|
||
反应堆友好型用户 settings(通过 -s 使用,不读 ~/.m2/settings.xml):
|
||
- 仅含下面「HTTP 拦截覆盖」一条 mirror,避免 ~/.m2 里 mirrorOf=* 把反应堆 sibling 误导向私服。
|
||
- Maven 3.8.1+ 在安装目录 conf/settings.xml 内置 maven-default-http-blocker(mirrorOf=external:http:*),
|
||
会把 profile 里 http:// 的 Nexus 全部挡掉。此处用**同 id** 声明一个 mirrorOf=dummy 的占位镜像,
|
||
覆盖默认项,使内网 HTTP 私服可解析。若 Nexus 已改为 HTTPS,可删除 <mirrors> 段并把上面 URL 改为 https。
|
||
|
||
使用方式(二选一):
|
||
1) 本目录已配置 .mvn/maven.config,在本模块根执行 mvn 时会自动带上 -s .mvn/settings.xml
|
||
2) 手动:mvn -s .mvn/settings.xml ...
|
||
|
||
若 Nexus 拉包需要账号,请在本文件 <servers> 中按 id=nexus-public 补全(勿提交密码到 Git)。
|
||
-->
|
||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
|
||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
|
||
|
||
<mirrors>
|
||
<mirror>
|
||
<id>maven-default-http-blocker</id>
|
||
<mirrorOf>dummy</mirrorOf>
|
||
<name>Override install-dir HTTP blocker; dummy matches no repository id</name>
|
||
<url>http://0.0.0.0/</url>
|
||
</mirror>
|
||
</mirrors>
|
||
|
||
<profiles>
|
||
<profile>
|
||
<id>elevator-nexus-public</id>
|
||
<activation>
|
||
<activeByDefault>true</activeByDefault>
|
||
</activation>
|
||
<repositories>
|
||
<repository>
|
||
<id>nexus-public</id>
|
||
<url>http://192.168.3.12:8081/repository/maven-public/</url>
|
||
<releases>
|
||
<enabled>true</enabled>
|
||
</releases>
|
||
<snapshots>
|
||
<enabled>true</enabled>
|
||
</snapshots>
|
||
</repository>
|
||
</repositories>
|
||
<pluginRepositories>
|
||
<pluginRepository>
|
||
<id>nexus-public-plugins</id>
|
||
<url>http://192.168.3.12:8081/repository/maven-public/</url>
|
||
<releases>
|
||
<enabled>true</enabled>
|
||
</releases>
|
||
<snapshots>
|
||
<enabled>true</enabled>
|
||
</snapshots>
|
||
</pluginRepository>
|
||
</pluginRepositories>
|
||
</profile>
|
||
</profiles>
|
||
</settings>
|