Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write or package a Git server as a Java Servlet or Java webapp?

Git is clearly awesome and a variety of clients are both available and easy to install for all platforms.

However it's a bit of a challenge to get a Git server up and running for teams.

I'm a bit surprised that there is not yet an easily deploy-able Java-Git app server or webapp. It looks like Gitosis, Gitolite, etc. are some options running on other stacks, but if you’re already running a Java stack it would be easiest to just deploy a Java servlet or webapp.

Along these lines I was wondering how one would approach writing a Java ‘Git Server’ webapp?

How far could JGit get you for a simple implementation? What would one need to do to package JGit as a web app to be able to push/pull to it and from it as well as easily create new repos?

like image 904
Brendan Avatar asked Jun 24 '11 12:06

Brendan


People also ask

What is Git Java?

JGit is a lightweight, pure Java library implementation of the Git version control system – including repository access routines, network protocols, and core version control algorithms. JGit is a relatively full-featured implementation of Git written in Java and is widely used in the Java community.

What is a Gitblit repository?

Gitblit is an open-source, pure Java stack for managing, viewing, and serving Git repositories. It's designed primarily as a tool for small workgroups who want to host centralized repositories.

What are the servlet post methods?

The doPost() method in servlets is used to process the HTTP POST requests. It is used to submit the data from the browser to the server for processing. The data submitted with POST method type is sent in the message body so it is secure and cannot be seen in the URL.


2 Answers

SCM-Manager is a Git-Server written in Java and uses JGit.

like image 51
sdorra Avatar answered Oct 07 '22 03:10

sdorra


Gitblit is an open-source, integrated, pure Java Git server, viewer, and repository manager for small workgroups. It works well on Windows and includes tools to run as a Windows service.

like image 45
James Moger Avatar answered Oct 07 '22 04:10

James Moger