How to publish Scalastyle results in Jenkins Maven job?
<p>We have a Scala project and use Maven and Jenkins for building it. Now we also want to use Scalastyle for static code analysis. 
It works fine in the IDE and if I use a Jenkins freestyle job. The output file is created and Jenkins shows a nice graph with the style warnings and errors.</p>

<p>However, if I use a Jenkins Maven job, the "Checkstyle trend" remains empty, although the xml file is there and has the right name (checkstyle-result.xml).</p>

<p>I found <a href="https://issues.jenkins-ci.org/browse/JENKINS-17287" rel="nofollow">this</a>. The discussion there is a bit confusing, but I understood that publishing the Scalastyle results should also work for a Maven job.</p>

<p>Did I get that wrong? Or is there in fact a way to make Jenkins publish the Scalastyle results for my Maven job? Or some kind of workaround? (Apart from using a freestyle job or SBT...)  </p>