简体   繁体   English

Eclipse maven 与 Jenkins 集成

[英]Eclipse maven with Jenkins integration

I wanted to use the inbuilt maven of my eclipse to integrate with jenkines.我想使用我的 eclipse 的内置 maven 与 jenkines 集成。

can some please suggest how to do that when i try to put the m2[C:\Users\HP.m2\repository] path in Jenkins and try to build it gives me error.当我尝试将 m2[C:\Users\HP.m2\repository] 路径放入 Jenkins 并尝试构建它时,有人可以建议如何做到这一点给我错误。

Building in workspace C:\Program Files (x86)\Jenkins\workspace\new_job ERROR: A Maven installation needs to be available for this project to be built.Either your server has no Maven installations defined, or the requested Maven version does not exist. Building in workspace C:\Program Files (x86)\Jenkins\workspace\new_job ERROR: A Maven installation needs to be available for this project to be built.Either your server has no Maven installations defined, or the requested Maven version does not exist . ERROR: Step 'Publish TestNG Results' failed: A Maven installation needs to be available for this project to be built.Either your server has no Maven installations defined, or the requested Maven version does not exist. ERROR: Step 'Publish TestNG Results' failed: A Maven installation needs to be available for this project to be built.Either your server has no Maven installations defined, or the requested Maven version does not exist. Finished: FAILURE完成:失败

Not possible.不可能。

You need to use a command line Maven for Jenkins.您需要对 Jenkins 使用命令行 Maven。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM