[英]Intermittent 401 error from Artifactory when deploying files
During our intraday builds, we intermittently (perhaps twice a day) get a '401 Unauthorized' error when maven performs the 'deploy' step of the build. 在盘中构建期间,当maven执行构建的“部署”步骤时,我们间歇性地(也许一天两次)收到“ 401未经授权”错误。 This error is seen on both the maven console and in the Artifactory requests.log.
在Maven控制台和Artifactory request.log中都可以看到此错误。 The time of day isn't consistent, nor is it tied to a snapshot/release repository.
一天中的时间不一致,也不与快照/发布存储库绑定。 I've checked and doublechecked all security settings and urls, and since this error is intermittent, I'm confident the issue lies with Artifactory.
我已经检查并仔细检查了所有安全设置和URL,并且由于此错误是间歇性的,因此我确信问题出在Artifactory。
I also get this intermittently with a 'mvn deploy:deploy-file'. 我还通过“ mvn deploy:deploy-file”间歇性地获得了该文件。 Today it failed on 1 upload out of approx 300.
今天,它在大约300个上传文件中有1个失败。
I've raised a jira with Artifactory but it's not been picked up yet: https://www.jfrog.com/jira/browse/RTFACT-14982 我已经在Artifactory上提出了一个吉拉,但是还没有被提起: https : //www.jfrog.com/jira/browse/RTFACT-14982
I should add that we didn't encounter this issue when using Archiva as our repository. 我应该补充一点,当使用Archiva作为存储库时,我们没有遇到这个问题。 It's happened regularly since I migrated to Artifactory
自从我迁移到Artifactory以来,这是定期发生的事情
With regards to the pom.xml example, the reason it is failing is that the deploy-file goal is missing the repositoryId
property. 对于pom.xml示例,失败的原因是部署文件目标缺少
repositoryId
属性。
This property should include the repository id for the repository you use for deployment, for example: 此属性应包括用于部署的存储库的存储库ID,例如:
<repositoryId>internal-snapshot-local</repositoryId>
The plugin will use this id for getting the deployer credentials from the Maven settings.xml file. 插件将使用此ID从Maven settings.xml文件获取部署者凭据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.