Fix for compatibility with Jenkins 1.510 (JENKINS-17165)

I have patched the original plugin for resolving the issues with reflection. I also modified the Maven-POM for better compatibility to Eclipse m2e and the unit-tests.