Tag: java

Compare files with master repo using git eclipse plugin

I need to replace my local file with my master. I am using eclipse git plugin. So i right click the file using compare with and i click index with head, it says file is not staged. What is this staged and how can i make it staged now? My second question is, suppose i […]

ambiguous mapping while deploying

I’m using Jenkins 1.6.20 (Git Client Plugin 1.18.0, Git Plugin 2.4.0) to get the Java application code from bitbucket.org and deploy it to Apache Tomcat 8.0.23. The error appears while deploying and looks like: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘requestMappingHandlerMapping’ defined in class path resource [org/spr$ public java.util.List by.ipps.accounting.ws.PositionWS.getEmployeePost(java.lang.Long) to {[/positionListJson/{id}],methods=[GET],params=[],headers=[],consumes=[],produces=[application/json],custom=[]}: There is already […]

Deploying java app from bitbucket repo to AWS: instance error

I am getting an error when I try to start my instance in AWS. So I am deploying a java app from bitbucket repo to AWS. I have created public and private keys and that looks to be set up correctly. I’ve created an app in AWS Opsworks and an instance. When I go start […]

Using git Repo https://github.com/tylerjroach/eventsource-android and it is not working?

I am using this android git REPO https://github.com/tylerjroach/eventsource-android I implemented the method public void onConnects() { Thread eventThread = new Thread(new Runnable() { @Override public void run() { try { eventSource = new EventSource(URI.create(myApiUrl), new SSEHandler(), true); eventSource.connect(); } catch(Exception e) { e.printStackTrace(); } } }); eventThread.start(); } But I had to change eventsource.connect(); from […]

JitPack doesn't create an artifact for a GitHub release

The JitPack build log for release 1 doesn’t load. Yet, the JitPack build log for latest, which isn’t as new as 1, does load. Why is there no JitPack log for release 1? JitPack docs say it should work fine: That’s it! The first time you request a project JitPack checks out the code, builds […]

Import existing project into eclipse, it auto combine old version with the new one

I want to import project A to eclipse(GGTS),but I already have A which is an old version but of same name. When I use import existing project, it automatically combine two version together but I don’t want this happen. I also use git so I’m not sure what make this happen.

Way to ensure same jar versions across the projects in gradle?

We have 5-6 projects on github. They all should use the same versions of some libraries. What would be the best way to do so in gradle? Helpful is the fact that all developers have all the projects cloned in the same root folder. versions in the root I can probably put versions in some […]

Java monitor GitHub repository

I want to create a Java application that monitors a GitHub repository, pulls changes to the machine it is running on and triggers a method when something in the repo has changed. while(true) { if(new commits on the remote github repo) { pullChanges(); doSomething(); } } I am currently using JGit and regularly deleting the […]

GitHub and Android studio no gradle.build

So I created an Android studio project, then trough it I created a Git repository and published it. Now I’m on a different computer trying to sync it all. So from the home of android studio I select “Check out project from Version Control” then Git, paste the github repo link and it imports the […]

maven-release-plugin deploying SNAPSHOT

I have a Maven project and now want to release it with the maven-release-plugin. Unfortunately after executing mvn release:prepare the git tag contains the old version number (1.0-SNAPSHOT) and when deploying to artifactory the SNAPSHOT version is used instead of the desired release version. I already found this bug, but all suggested solutions are not […]

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