Changed some settings and set maven compiler to 1.6