如何将TFS Java SDK部署到本地maven存储库? [英] How to deploy the TFS Java SDK to a local maven repo?

查看:141
本文介绍了如何将TFS Java SDK部署到本地maven存储库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

TFS java SDK是否可用于任何公共maven存储库?如果没有,我如何将其添加到本地Maven存储库,以便本机依赖关系也能正常处理?


我正在尝试使用Clojure通过Leiningen的TFS SDK。 / p>

解决方案

以下是我的工作原理。我也在通过Leiningen在Clojure中使用SDK。


  1. 解压缩zip文件
  2. 进入 redis t 文件夹
  3. lib 文件夹中的SDK jar部署到原生文件中的Maven仓库
  4. 文件夹,我以递归方式将 win32
    复制到 windows 。我认为一个简单的重命名就可以了,但我也留下了原来的名字。
  5. 仍然在 redist ,jar本机库, jar cMf tfs-sdk-native.jar native
    并部署到您的Maven仓库

执行此操作后,我能够包括我的project.clj中的这两个jar都使用了Eclipse中的REPL(当然还有结果程序)中的SDK。



我发现此页有用


Is the TFS java SDK available in any public maven repository? If not, how can I add it to a local Maven repository such that the native dependencies are also take care of properly?

I am trying to use the TFS SDK from Clojure via Leiningen.

解决方案

Here is what I did to make it work. I'm also using the SDK in Clojure via Leiningen.

  1. Unpack the zip file
  2. go into the redist folder
  3. deploy the SDK jar from the lib folder to your Maven repo
  4. in the native folder, I recursively copied win32 to windows. I think a simple rename would have been fine but I left the original name as well. 
  5. still in redist, jar the native libs, jar cMf tfs-sdk-native.jar native and deploy to your Maven repo

After doing this I was able to include both of these jars in my project.clj and use the SDK from the REPL in Eclipse (and also from the resulting program, of course).

I found this page helpful


这篇关于如何将TFS Java SDK部署到本地maven存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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