fix: maven-settings overrides HTTP blocker; cache ~/.m2 on host
deploy-userbase-service / build-deploy (push) Failing after 33s
deploy-userbase-service / build-deploy (push) Failing after 33s
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user