title: How to fail maven goal sonar:sonar based on quality gates
body: <p>How to fail maven goal sonar:sonar based on quality gates rules?
  I run it for local builds, for CI I already wrote a script according to <a href="http://docs.sonarqube.org/display/SONAR/Breaking+the+CI+Build" rel="noreferrer">http://docs.sonarqube.org/display/SONAR/Breaking+the+CI+Build</a>
  So, if quality gates validation fails then goal also should fails </p>