fix gitignore and add packajing to pom.xml