You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:3.1.1:deploy (default-deploy) on project yudao: Failed to deploy artifacts: Could not transfer artifact cn.iocoder.boot:yudao:pom:2.0.0-jdk8-snapshot from/to nexus-snapshots (https://xxxx.xxx.com/repository/snapshot): status code: 400, reason phrase: Repository version policy: SNAPSHOT does not allow version: 2.0.0-jdk8-snapshot (400) -> [Help 1]
The text was updated successfully, but these errors were encountered:
基本信息
snapshot版本号小写,导致被nexus私服识别为release库,无法redeploy
强制上传snapshot库时,被nexus私服Version policy拦截上传
你猜测可能的原因
版本号为2.0.0-jdk8-snapshot
nexus里的snapshot库Version policy配置了Snapshot。但是发现该判断无法识别小写snapshot,必须为标准的2.0.0-jdk8-SNAPSHOT才行
复现步骤
给maven配置一个nexus私服地址,snapshot和release库分别配置Version policy为Snapshot和Release
mvn clean deploy -Dmaven.test.skip=true -f pom.xml
报错信息
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:3.1.1:deploy (default-deploy) on project yudao: Failed to deploy artifacts: Could not transfer artifact cn.iocoder.boot:yudao:pom:2.0.0-jdk8-snapshot from/to nexus-snapshots (https://xxxx.xxx.com/repository/snapshot): status code: 400, reason phrase: Repository version policy: SNAPSHOT does not allow version: 2.0.0-jdk8-snapshot (400) -> [Help 1]
The text was updated successfully, but these errors were encountered: