问题
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.
回答1:
(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.
来源:https://stackoverflow.com/questions/24963084/java-client-to-connect-to-stash-repository