fix: maven-settings overrides HTTP blocker; cache ~/.m2 on host
deploy-userbase-service / build-deploy (push) Failing after 33s

This commit is contained in:
chenxing
2026-08-05 11:19:14 +08:00
parent 080a212c8f
commit c9a30b473d
2 changed files with 13 additions and 1 deletions
+11
View File
@@ -1,4 +1,15 @@
<settings>
<!-- Maven 3.8+ 默认拦截 HTTP 仓库(maven-default-http-blocker)。
nexus maven-public 仅提供 HTTP,故在此覆盖该 blocker,放行内网 nexus。 -->
<mirrors>
<mirror>
<id>maven-default-http-blocker</id>
<mirrorOf>external:http:*</mirrorOf>
<name>nexus maven-public (allow http)</name>
<url>http://192.168.10.160:8081/repository/maven-public/</url>
<blocked>false</blocked>
</mirror>
</mirrors>
<profiles>
<profile>
<id>nexus</id>