In this case, there are two remote repositories, one for release, the other for snapshot. i created two proxy repositories in Nexus, one is for the release repo, the other is for the snapshot repo. the part of settings.xml about repository is as following:
<repository>
<id>aliyun_release</id>
<url>http://192.168.xxx.xxx:8081/repository/aliyun_release/</url>
</repository>
<repository>
<id>aliyun_snapshot</id>
<url>http://192.168.xxx.xxx:8081/repository/aliyun_snapshot/</url>
</repository>
but there is an error while packaging
[ERROR] Failed to execute goal on project riskcontrol-service: Could not resolve `dependencies for project com.yueyue:riskcontrol-service:jar:3.0.0-SNAPSHOT: Failed to collect dependencies at org.springframework.cloud:spring-cloud-starter-pandora:jar:1.3 -> com.taobao.pandora:taobao-hsf.sar:jar:dev-SNAPSHOT: Failed to read artifact descriptor for com.taobao.pandora:taobao-hsf.sar:jar:dev-SNAPSHOT: Could not transfer artifact com.taobao.pandora:taobao-hsf.sar:pom:dev-SNAPSHOT from/to aliyun_release (http://192.168.200.224:8081/repository/aliyun_release/): Failed to transfer file: http://192.168.200.224:8081/repository/aliyun_release/com/taobao/pandora/taobao-hsf.sar/dev-SNAPSHOT/taobao-hsf.sar-dev-SNAPSHOT.pom. Return code is: 400 , ReasonPhrase:Repository version policy: RELEASE does not allow version: dev-SNAPSHOT. -> [Help 1]`
after changing the settings.xml to original remote repositories. the packaging process is OK. the original settings.xml is as following:
<repository>
<id>rdc-releases</id>
<url>https://repo.rdc.aliyun.com/repository/36007-release-InunWS/</url>
</repository>
<repository>
<id>rdc-snapshots</id>
<url>https://repo.rdc.aliyun.com/repository/36007-snapshot-JRXl8h/</url>
</repository>
the version of Nexus is 3.19.1
the settings of release proxy repo in Nexus is as following:
the settings of snapshot proxy repo in Nexus is as following:
what should i check first for this problem? Many thanks in advance!