Tag: java

A new tag with <tag> gets added in my pom after doing a release on git server

I have a maven-based java project which I released on Bitbucket git server recently using mvn:release perform command and it was successful. However, after the release was done my pom.xml got modified automatically with the code snippet <tag>HEAD</tag> in the tag which kind of surprised me because when doing a release on subversion in my […]

Issue while trying to open a Maven project via Git in Eclipse Luna

I have a maven project in Github and I want to work with that in Eclipse. In eclipse, there is an option for File>New>Other>Maven>Check out Maven Projects from SCM. But the dropdown select option near SCM URL is inactive. On clicking “m2e Marketplace”, I cannot find git in the list. Though I did find egit, […]

How do I push a play! framework java application to a Dokku in Digital Ocean droplet?

When I try to push a get an error: java.lang.UnsupportedClassVersionError: org/webjars/WebJarExtractor$Cache : Unsupported major.minor version 51.0 I realize the problem happens because when I execute the “push” action form Git, Dokku installs the OpenJdk 1.6, but I don’t know how to solve this problem (I already installed the Oracle Jdk 8 on my digital ocean […]

EGit won't add lib folder to vcs

I have a lib folder in my project, I’ve added it to my build path it even shows up in my .classpath but when I tried to commit it isn’t committed. I’ve tried adding it to GIT via eclipse but it won’t work. I havev tried adding it with the git gui but that says […]

Git: Unable to clean working copy after refactoring file names

I somehow cause git to get all confused after renaming a directory in a Java project. There are now a whole bunch of phantom files sitting in my working copy for the old file name that I can’t seem to remove. An example of one these changes is: Example Diff: NumberUtils.java -package com.RedactedCompanyName.Helpers; +package com.RedactedCompanyName.helpers; […]

Travis CI – android build failed. No connected devices error

Trying to get started with Travis CI for my Android projects but Travis still failing while build my android project. Reason: :app:connectedDebugAndroidTest FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:app:connectedDebugAndroidTest’. > com.android.builder.testing.api.DeviceException: No connected devices! * Try: Run with –stacktrace option to get the stack trace. Run […]

cross platform git: possible strategies to handle platform specific files

Using eclipse and (E)git for developing a java cross platform application (windows and linux) I wonder what is the best way of handling files that contain platform-specific elements. In for example .classpath the paths of the libraries differ and probably there will be more specific changes as well. When handling specific resources I presume that […]

JGit with ssh key in non-default location

I am trying to include calls to a git repo (fetching from remote and committing changes) into my Java program using JGit. I have followed the steps from http://www.codeaffine.com/2014/12/09/jgit-authentication/, but Eclipse gives me some errors. My code for the pull command (currently with the clone command as this is example code from the linked article): […]

How can I automatically add a datestamp field to a java class marking a commit date

I can’t figure out a nice, succinct title for this question, so bear with me! My overall goal is to have a variable in my source code which give the date, time, (and possibly commit id) of a class so that when exceptions get caught, I could output the error along with that said variable […]

Creating a new root directory in an Eclipse project under version control

I’m working on a group project for my software engineering course, and my professor has indicated that I set up the directory structure incorrectly on Github. I’d like to correct the issue now to avoid a grade penalty, but I’m very new to using Git. Basically we have a structure that is as follows on […]

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