赞
踩
今天在使用Maven命令:mvn deploy将项目部署到nexus中时报错如下:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy (default-deploy) on project maibao-parent: Failed to deploy artifacts: Could not transfer artifact com.mengfei:maibao-parent:pom:1.0-20180813.091645-1 from/to reployToNexus-snapshots (http://192.168.188.132:8081/nexus/content/groups/public): Failed to transfer file: http://192.168.188.132:8081/nexus/content/groups/public/com/mengfei/maibao-parent/1.0-SNAPSHOT/maibao-parent-1.0-20180813.091645-1.pom. Return code is: 400, ReasonPhrase: Bad Request.
部署的仓库类型错误、部署的仓库部署策略为禁止部署或者部署的仓库发布版本与部署的项目发布版本不相符等都会导致出现这个错误。
nexus的repository分三种类型:Hosted、 Proxy和Virtual
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。