Java code formatter plugin
<build>
<plugin>
<groupId>com.theoryinpractise</groupId>
<artifactId>googleformatter-maven-plugin</artifactId>
<version>1.6.1</version>
<executions>
<execution>
<id>reformat-sources</id>
<configuration>
<includeStale>false</includeStale>
<style>GOOGLE</style>
<filterModified>true</filterModified>
<skip>false</skip>
</configuration>
<goals>
<goal>format</goal>
</goals>
<phase>process-sources</phase>
</execution>
</executions>
</plugin>
<plugins>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<version>2.7.3</version>
<configuration>
<encoding>UTF-8</encoding>
<compilerSource>1.8</compilerSource>
<compilerCompliance>1.8</compilerCompliance>
<compilerTargetPlatform>1.8</compilerTargetPlatform>
</configuration>
</plugin>
</plugins>
</build>