Upgrade some maven plugins.
Add checkstyle and fix issues found by checkstyle.