Created a .gitignore file to make sure that the maven target directory is ignored.