Configures maven-compiler-plugin to compile classes with Java 1.7;
Configures a redirect listener to force commit;
Avoiding duplicade code in the tests;