added compiler plugin to pom files. also formatted them