Archive for the ‘maven’ Category

Maven Plugin: Java Code Formatter

without comments

Enforcing code format in an organization needs discipline. And the best way to do that is by doing some automation. A plugin for Maven will be a easy decision if your organization has used Maven to manage the build.

This plugin is one plugin that exactly does that. The backbone on the plugin comes from Eclipse Java Formatter, which I still endorse as the best in the industry.

Compared to Jalopy, which is now not free, I find Eclipse formatter has the flexibility we often needed. Although it is not bug-free, for most cases it is more than enough.

However, I concerned by the fact that official maven doesn’t have the latest jar of Eclipse JDT. It still only has version 3.3 of it. Hopefully they will have it soon, especially after Helios is released, which bring a lot of improvement to the Java formatter.

Related posts:

  1. Java Formatter Improvement on Eclipse Helios
  2. My Eclipse Code Formatter
  3. Eclipse plugin: Introduce Static Imports

Maven Plugin: Java Code Formatter originally appeared on satukubik on June 10, 2010.

Written by Nanda Firdausi

June 10th, 2010 at 3:30 pm