Tag: java

What's the fastest way to get a private Maven Repository up and running?

I’m working with a few developers and we would like to share some jars as we’re working through the early iteration of a projects code. We would like to just pop up a quick private maven repository server to use for a short bit. In ruby it’s a simple as typing: gem server Apparently, there’s […]

adding android project to git

Which are the files that I have to ignore when adding a project to git? Should I add the .classpath file? What is the purpose of .classpath? Im using eclipse and pushing to a Jenkins server

Usage of 'pull' command in Jgit

I’m a new user of git and am using JGit to interact with a remote git repository. In JGit, I used CloneCommand to initially to clone a repo, and it worked without a issue. However, when I try to use PullCommand, which is the equivalent of SVN update AFAIK, the local repo contents are not […]

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 […]

egit with self signed certificate, https

I would like to use a git repo that is accessigble through https, Https server has self signed certificate. I always get an error while trying to clone the repo with eclipse+egit: https://host/path: cannot open git-upload-pack sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Is it possible to […]

What is the best solution for handling multiplatform (dev/integ/valid/prod…) development? Delivery process

I’m not so experienced but i worked on some big Java EE projects (using maven2) with very distinct ways to handle the installation / delivery on the different platforms. 1) One of them was to use snapshots for development and then make a maven release, of components and main webapplications. Thus the delivery is: war/ear […]

How to use a Git repository as an exploded war?

I am in the following situation… I am used to being able to check out a Subversion server subproject into JBoss as an exploded war: in my case, I call a directory Blah.war, put it in C:\jboss-6.1.0.Final\server\default\deploy\Blah.war, and JBoss picks it right up. I’m having trouble doing this with Git. The SVN repository I’m pulling […]

How to get the git SHA1 value in the Implementation-Version field in the manifest for a Maven project?

We use git and maven and logback. This mean that the stack traces in the log show the Implementation-Version of the jar containing each line in the stack trace (see http://logback.qos.ch/reasonsToSwitch.html#packagingData for an example). So if we can package the SHA1 of the current build into that field in the manifest of the artifact being […]

Android Studio push tags to remote

I’ve recently started working with Android Studio and am using git (bitbucket). Whenever I create a stable/releasable version of an application I create a tag so that it becomes easier to spot all the versions among all the commits. My trouble is that I have not found a way to push my tags to the […]

NetBeans and Java: what to add to version control?

What do I need to add apart from the obvious (src, dist) to my version control system from a NetBeans Java project directory? Can I drop the entire build directory? Should I add the nbproject directory as I’m working on the same project on a different machine as well? I would like to drop at […]

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