[英]Maven stage of build failing in Azure DevOps.Used a self hosted agent for building sample java but getting "Unhandled: EPERM: operation not permitted"
Used a self-hosted agent for building sample java but getting ##[error]Unhandled: EPERM: operation not permitted, stat 'C:\\Users\\DELL\\Downloads\\apache-maven-3.6.3\\bin\\mvn.cmd'
使用自托管代理构建示例 java 但得到
##[error]Unhandled: EPERM: operation not permitted, stat 'C:\\Users\\DELL\\Downloads\\apache-maven-3.6.3\\bin\\mvn.cmd'
Please help me troubleshoot this error :请帮我解决这个错误:
This issue was resolved.此问题已解决。 The root cause was due to authentication issue.
根本原因是由于身份验证问题。
I was using a self-hosted agent and my Maven was asking for authentication but it was unable to autheniticate.我使用的是自托管代理,我的 Maven 要求进行身份验证,但无法进行身份验证。
How I resolved this error :我是如何解决这个错误的:
I installed maven in D drive and changed the env variables such that it points to D drive then it worked fine.我在 D 驱动器中安装了 maven 并更改了 env 变量,使其指向 D 驱动器然后它工作正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.