在TFS Online构建中使用个人库.jar [英] Using personal library .jar in TFS Online build

查看:125
本文介绍了在TFS Online构建中使用个人库.jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Team Foundation Server开始在我的Java / Maven项目上进行持续集成。我正在尝试构建两个项目:一个库和一个主项目。

当我从本地框编译主项目时,它目前正在获取library.jar文件从当地的Artifactory服务器(我的上级希望离开)发送。

我已经获得了库的构建,由git repo的更改触发。我希望主项目能够在编译时使用这个生成的工件,但是我找不到有关如何将Maven指向TFS工件的文档。

你有没有在自己的项目中做到这一点?我将如何创建对library.jar的引用?



编辑:我不一定希望构建触发器。我试图找出依赖管理。

解决方案

您可以在您的构建定义中添加Powershell任务,以下载库构建通过Rest API创建工件:获取构建工件

对于settings.xml文件,您可以将其上载到版本控制中,并指定--settings settings.xml以使用它。 / p>

I'm trying to start doing continuous integration on my Java/Maven project, using Team Foundation Server. I am trying to build two projects: a library, and a main project.

When I compile the main project from my local box, it's currently getting the library.jar file from a local Artifactory server (which my superiors would like to go away).

I've gotten the library to build, being triggered by changes to the git repo. I would like the main project to be able to use this generated artifact when it compiles, but I cannot find documentation on how to point Maven to the TFS artifact.

Have you managed to do this in your own project? How would I go about creating the reference to the library.jar?

EDIT: I'm not necessarily looking to have build triggering. I'm trying to figure out dependency management.

解决方案

You can add a Powershell task in your build definition to download the library build artifacts via Rest API: Get Build Artifacts.

For the settings.xml file, you can upload it into the version control and specify "--settings settings.xml" to use it.

这篇关于在TFS Online构建中使用个人库.jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆