简体   繁体   English

Azure DevOps 中构建失败的 Maven 阶段。使用自托管代理构建示例 java 但得到“未处理:EPERM:不允许操作”

[英]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.

相关问题 Azure DevOps SaaS Maven 构建代理问题 - Azure DevOps SaaS Maven build agent issue Azure Devops maven 在声纳 qube 实例中构建失败 - Azure Devops maven build failing at sonar qube instance 我可以通过 Azure DevOps 工件从私有托管代理访问 Maven 中心吗? - Can I reach Maven central through Azure DevOps artifacts from a private hosted agent? Pipeline for a java based web app on azure devops.Apache maven to create build. 下面 yaml 代码和 output 错误我得到 - Pipeline for a java based web app on azure devops.Apache maven to create build . Below yaml code and the output error i'm getting Maven 测试在 Azure DevOps 中失败。 java.io.FileNotFoundException: TestSuiteList.xls(没有这样的文件或目录) - Maven tests failing in Azure DevOps. java.io.FileNotFoundException: TestSuiteList.xls (No such file or directory) Azure 管道无法识别自托管代理中的 mvn - Azure Pipelines does not recognize mvn in self hosted agent Azure DevOps Pipeline 中的 Maven 构建错误 - Maven build error in Azure DevOps Pipeline 如何在 Azure 管道 Ubuntu 代理上安装 java 13 并在 Maven 构建期间使用它? - How to install java 13 on Azure-pipeline Ubuntu agent and use it during Maven build? 在Azure DevOps管道生成上收到此错误“无法执行目标org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile” - getting this error “Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile” on Azure DevOps pipeline build Azure DevOps Maven 构建管道 - 将构建 ID 添加到清单文件 - Azure DevOps Maven Build PIpeline - Add build id to the Manifest File
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM