Java with Eclipse IDE
Setting up Eclipse with Maven
Your maven project needs to include the following maven-eclipse-plugin configuration to make use of the gbif coding style:
To setup eclispse execute
mvn eclipse:eclipsein the root folder of your project.
Code Formatting Style
To manually setup the coding style without maven do:
Window->Preferences->Java->Code Style->Formatter->Import... Then select the downloaded java-style-config.xml file.
For Eclipse import organization: Window->Preferences->Java->Code Style->Organize Imports->Import... Then select the downloaded java-style.importorder file.
Member Sort Order
For Eclipse member sort order make your
Window->Preferences->Java->Appearance->Members Sort Ordermatch the following screenshot:
Finally, to automate all of this each time you save, configure your Eclipse
Window-Preferences->Java->Editor->Save Actions...to match the following screenshot:
Download settings.jar and select
File -> Import Settings