forked from pgier/maven-dependency-management-extension
-
Notifications
You must be signed in to change notification settings - Fork 3
Eclipse Formatting
ASzc edited this page Feb 5, 2013
·
1 revision
To format project code consistently with Maven source code, it is best to give Eclipse the Maven code style definitions.
Download the definitions from here: http://maven.apache.org/developers/maven-eclipse-codestyle.xml
After importing the cloned repository into Eclipse, we can add the Maven code style specifically for this project.
Project > Properties > Java Code Style > Formatter > Enable Project Specific Settings > Import ...
Select the previously downloaded maven-eclipse-codestyle.xml, then OK. The active formatter profile for the project should then be Maven. Press OK again to save.