Changed pom and also fixed implementation of interfaces