Each Java project should follow a given coding style. I.e., all contributions to the source code should use the same formatting rules, design principles, code patterns, idioms, etc. I published such a coding style in my GitHub project 'codingstyle'. I am using this coding style in my lectures about software development at Munich University of Applied Sciences and in all of my open source projects.
If you want to use this coding style as well, you can use this Maven POM as parent of your own POM. Then you get the configuration of the following tools for free: