Fixed examples/pom.xml and run-example based on Patrick's suggestions.