The easiest way I know is in combination with m2eclipse plugin: