Tag: java

Jar Dependencies in GitHub

I’m setting up a new Java project on GitHub, and I’ll have some Apache Commons libraries as dependencies. What are the best practices to establish that my project needs those jar files? Should I upload the dependencies to my GitHub repository (ugly)? Or use a Maven-like tool for that? Or is there a way to […]

Eclipse luna – Internal error, trying to import from git

I am using Eclipse Luna, and I am trying to import a project from github. However, it says “Internal error; consult Eclipse error log” when I pasted the URI in: The project is valid. I’ve tried a few projects, and they all worked on my older Juno version of eclipse, but all failed on Luna, […]

Why the combination of Maven with Git?

I started a job in a company where they use Maven in combination with Git. I haven’t worked with Maven before and I hope my question isn’t too stupid. Why should one use Maven in combination with Git? From what I read Maven has a local, a central and can have a remote repository where […]

The server rejected the connection: None of the protocols were accepted

I’m facing a weird issue when I launch Jenkins as Windows service in my client VM. 1) I have launched Jenkins as Windows service in my client side master machine (a Windows VM) and configured my local machine as a slave and I’m unable to establish the connection between master and slave. I’m getting the […]

JGit get pulled files

I have one repository in two different folders ( folder1 and folder2). Within repositories has a “oldFile” file In the folder1 I do the following steps: echo 123 > oldFile touch newFile git add newFile oldFile git commit -m “Change the oldFile from folder1 and add the newFile” oldFile newFile git push origin master After […]

JGit checkout vs `git checkout` problems

tl;dr JGit’s checkout throws exceptions while command line git checkout works fine I’m currently trying to use JGit to check out certain revisions from an online Git repository, in Java (for work). My current approach is (and I’m very new to Git, coming from a SVN background, so this may be wrong): clone the repository […]

Are java .class files needed after an application is running?

I had a hard time writing the title to this question, but here is my situation and what I am asking: I have a Java project that I run “ant test” on to run the tests The tests take about 10 minutes to run Can I switch to a different Git branch in the middle […]

Eclipse Java Projects in Git

I am trying to figure out the best way to create a java project in GIT. In particular I would like to create the git repository such that when I import from git in Eclipse, the project is automatically created correctly with all its .project settings intact and all other settings setup. I.E. if I […]

how can i version a java application between builds?

Currently, my Java applications have the same version on every build. I am using Maven, but I am not sure how to set up the workflow to add a version to the application on each build. I imagine this works with my version control system? I am using git, does this mean I need git […]

does Java have API wrappers around subversion and Git?

Curious if there any API wrappers for Git and Subversion for Java? I want to be able to pullup the changesets and souce code (and diffs) from Subversion and Git repos. Is this possible? Any pre-built APIs?

Git Baby is a git and github fan, let's start git clone.