在TFS中运行Maven构建 - 获取错误消息 - & quot;找不到具有以下功能的代理:maven& quot; [英] Run Maven build in TFS - Getting error message - "No agent could be found with the following capabilities: maven"
问题描述
我正在尝试在TFS中运行Maven构建。我创建了一个新的构建定义,并添加了构建任务"Maven"。
I am trying to run a Maven build in TFS. I have created a new build definition and added the build task "Maven".
在此Maven任务中,对于字段" Maven POM文件" 我已经设置了"POM.XML"的路径。项目的文件,并在Repository的Map字段
下设置了正确的项目路径。我选择了"默认代理队列为托管",
此池下有许多代理。
In this Maven task, for field "Maven POM file" I have set the path of the "POM.XML" file of the project and have set the correct project path under the Map field of Repository. I have selected the "Default Agent Queue as Hosted", there are many agents under this pool.
现在,当我对此版本进行排队时,我收到以下错误消息:
Now when I queue this build , I am getting the below error message :
1)"找不到具有以下功能的代理:maven"
2)池1中找不到满足指定要求的代理商:
maven
Agent.Version -gtVersion 1.94.0
请指导我如何成功运行TFS中的Maven构建。我是否需要在代理机器上执行任何特定配置才能运行Maven构建,如果是,请指导如何执行此操作?
Please guide how could I run Maven build in TFS successfully. Do I need to do any specific configuration on Agents machine for running Maven build, if so please guide how to do so ?
此外,是否有办法添加新的代理机器用于运行特定于Maven的构建的池吗?
Also, is there a way to add a new Agent machine in the pool to run builds specific to Maven ?
谢谢,
Vaibhav
Vaibhav
推荐答案
你们安装代理1.94或更高?你是否在构建代理上安装了maven。
Do you have agent 1.94 or higher installed? And do you have maven installed on the build agent.
- 您是否尝试在安装Maven后重新启动代理,这应该启动自动检测。
- 构建代理的服务用户的路径环境变量中是否有Maven的可执行文件?
- 如果自动检测失败,您是否已在代理队列或代理中的代理的caplicability选项卡上定义了maven功能池页作为自定义功能?
这篇关于在TFS中运行Maven构建 - 获取错误消息 - & quot;找不到具有以下功能的代理:maven& quot;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!