Configure Eclipse Formatter with m2e

Is there an existing m2e extension for configuring the Eclipse Formatter when importing a Maven project into eclipse? We use custom checkstyle rules, and m2eclipse configures the Eclipse-CS plugin for us. But also, I want the Eclipse Formatter to be configured as well ...

+5
source share
1 answer

This Eclipse plugin can be useful ( https://github.com/SciSysUK/m2eclipse-maveneclipse ).

One thing you can do with it is copy files, for example, copy prefs files for formatting to the Eclipse.settings folder. This is not ideal, but it does the job (I really will be interested in the best / alternative way to achieve this).

There is an example here: https://github.com/philwebb/springfaces/blob/master/springfaces/pom.xml . Please note that you can also use the url to post files somewhere

+2
source

All Articles