Adding .gitignore and fixing java target in pom.xml