Shamelessly copied and improved from http://stackoverflow.com/questions/3416547/maven-jdepend-fail-build-with-cycles