Added maven compiler plugin with Java version set to 1.6.