Java客户端连接到存储库 [英] Java Client to Connect to Stash Repository

查看:144
本文介绍了Java客户端连接到存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图以编程方式从Java类连接到STASH存储库。我看了一下,我找不到任何Java客户端来执行此操作。有没有人遇到过任何?



我想连接到STASH存储库的原因是我正在编写一个Maven插件,它将转到STASH中的Git存储库并返回一个提交列表,然后是一个给定标签的Jiras。



任何帮助都将不胜感激。

解决方案

首先,有< jGit :


JGit是一个EDL(新型BSD)许可,轻量级,纯粹的Java库,实现了Git版本控制系统。

然后是隐藏Java客户端


Stash Java Client是一个小型轻量级Java库,可用于通过Stash实例它的REST API。



I am trying to programatically connect to a STASH repository from a Java class. I have had a look and I cannot find any Java clients to do this. Has anyone come across any?

The reason I want to connect to a STASH repository is that I am writing a Maven plugin that will go to a Git repository in STASH and return a list of commits and then Jiras for a given tag.

Any help would be greatly appreciated.

解决方案

(Consolidating two answers given in comments as a Community Wiki answer)

First of all, there's JGit:

JGit is an EDL (new-style BSD) licensed, lightweight, pure Java library implementing the Git version control system.

And then there's the Stash Java Client:

The Stash Java Client, is a small, light-weight Java library that can be used to interface with a Stash instance via its REST API.

这篇关于Java客户端连接到存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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