@marcphilipp 
I prefer using this check because some plugins work properly with the latest mvn version, and jdk 1.5 like the surefire.