Add contrib dependency to sample pom.xml, see #2895