[JENKINS-9767] MavenTestDataPublisher is unusable in this state

[JENKINS-9767 MavenTestDataPublisher is unusable in this state](https://issues.jenkins-ci.org/browse/JENKINS-9767) 

Formatted changes of Sebastien Pinel from [JENKINS-9767](https://issues.jenkins-ci.org/browse/JENKINS-9767)  provided patch. 

Reasons for applying this patch:
======
- [JUnit Attachments Plugin](https://wiki.jenkins-ci.org/display/JENKINS/JUnit+Attachments+Plugin) will work with Maven2/3 builds

    There is a lot of people complaining that this plugin does not work (see http://kohsuke.org/2012/03/13/attaching-files-to-junit-tests/ or comments under https://wiki.jenkins-ci.org/display/JENKINS/JUnit+Attachments+Plugin)
- new JUnit results formatting plugins can come to life

    For example [JUnit Excepted Diff Plugin](https://github.com/usultis/junit-expected-diff-plugin) that shows difference between expected and actual value. Unfortunately, just like JUnit Attachments Plugin it now works only with freestyle jobs

Implementation details:
======
Attached integration test proving, that actions are contributed