Tag: java

Whats the easiest way to move project Java from java.net to bitbucket

This question already has an answer here: How to migrate SVN repository with history to a new Git repository? 30 answers

Example of gitignore file for java

Can you show me example of .gitignore file for java, that consider a lot of different files that are not included(jar, war, classpath, files that IDEA and other IDE generates and so on and on). I mean really big .gitignore. What I currently have is **/target/ /target/ */target/* .classpath .project .settings # Package Files # […]

Git project in eclipse disappeared from workspace after a pull

My Java Project disappeared from the Project Explorer after I performed the following actions with egit: Commit Successfully performed Push to upstream Didn’t succeed (not sure about the reason but I think it was because a pull was required first) Pull Egit says the project merged successfully After I closed the window containing the info […]

java heap space error while trying git push

I have been trying to push my commit to the git repository but it is showing “java heap space error“. The log of the push is shown below: Counting objects: 108, done. Delta compression using up to 8 threads. Compressing objects: 100% (93/93), done. POST git-receive-pack (chunked) Writing objects: 100% (108/108), 561.41 MiB | 4.91 […]

CI with Maven, Git and Artifactory

I want to create a CI pipeline using Maven, GitLab and Artifactory. I already set up all these systems, and right now Jenkins makes a build, if a user pushes to GitLab and deploys the artifact to Artifactory. But what I want is the following: The developer develops a Java application and can push his […]

MVN package install error javac: invalid target release: 1.8

I’m trying to install this from git. (I am running Ubuntu.) I’m getting this error [WARNING] The POM for de.jungblut.common:thomasjungblut-common:jar:1.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [INFO] [INFO] — maven-clean-plugin:2.5:clean (default-clean) @ glove — [INFO] Deleting /home/nat/workspace/Glove/target [INFO] [INFO] — maven-resources-plugin:2.3:resources (default-resources) @ glove — […]

Can I setup Git to tell me each time a certain file(s) has been modified

Is it possible to set Git up in a way that it will tell me when a choice file(s) has been modified. I would like this to be setup similarly to a git hook, but I don’t need to know when anything in the whole project has been changed only a choice file. This is […]

Java classpath issue when I specify the directory in the command

When I try running my Java application, it cannot find the main class in the directory I specify. My application is in this directory: C:\Users\Cristian\git\tranquil-crag-4851 My main class is in this directory: C:\Users\Cristian\git\tranquil-crag-4851\target\classes\com\example My main class is called Main.class When I run this command java -cp target/classes:target/dependency/* com.example.Main from directory C:\Users\Cristian\git\tranquil-crag-4851\ the result I get […]

JGit – Using parameters with LogCommand

I’m using JGit to provide a service that will give information about various remote repositories. I’m trying to use JGit’s LogCommand to do this, however I have been unable to find a way to do this. I’m trying to achieve something analogous to doing the following: git log –author=”<username>” –pretty=tformat: –shortstat However, I can’t find […]

During git bisect, is it safe to run only failing tests? or we should run all tests?

When I use the git bisect command, I run only the failing tests at each bisection point for Java programs. However, I see that many tutorials related to git bisect propose running “make; make test”. Is there any reason why I should run all the tests at each step? Thanks a lot in advance.

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