[英]Setting Maven for Artifactory deploy
I've followed the tutorial from Setting up Artifactory 4 as a Maven repository but I have a problem running mvn deploy
command.我已经按照将Artifactory 4 设置为 Maven 存储库中的教程进行了操作,但是我在运行
mvn deploy
命令时遇到了问题。 In the video things looked pretty straight forward but for me I get a Return code is: 401, ReasonPhrase: Unauthorized.
在视频中,事情看起来很简单,但对我来说,我得到的
Return code is: 401, ReasonPhrase: Unauthorized.
error.错误。 This was working in Artifactory 3 but generating settings.xml file and also password generating seems to be changed.
这在 Artifactory 3 中有效,但生成 settings.xml 文件和密码生成似乎已更改。 There is something I am missing in the configuration?
我在配置中缺少什么? Thank you
谢谢
Please check your settings.xml
for the correct <server>
tags.请检查您的
settings.xml
以获取正确的<server>
标签。 Once you added <distributionManagement>
tag in your pom.xml
, you should add the corresponding <server>
tag with the same ID and URL to the settings.xml
.在
pom.xml
添加<distributionManagement>
标记后,您应该将具有相同 ID 和 URL 的相应<server>
标记添加到settings.xml
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.