Changed pom file to work as a jar