Created empty Maven project from within Eclipse. Also added empty files
src/main/java/.gitignore 
src/main/resources/.gitignore
src/test/java/.gitignore
src/test/resources/.gitignore
to make these directories non-empty and, thus, persisted by Git.