Netbeans
Download and install Netbeans
Go to Netbeans downloads and select latest version of “Netbeans with Java SE”.
Once the file is downloaded, run the installation wizard.
Open the Tools > Options dialog, and set the options as illustrated below for the “Editor” options:
Enable automatic tomcat deployment
Open the Tools > Plugins dialog.
Select the “J2EE base” plugins in the list of plugins in the “Available plugins” tab, and click on “Install”.
Accept all confirmation messages and finalize by clicking on “Restart now”.
Open Sigmah project in Netbeans
Since Sigmah is maven-based, Netbeans can automatically open it. Just click on “Open project” and select the directory containing the pom.xml
file (this is where you made your git clone
).
If you're more comfortable with your IDE, you can create the project and clone the source from it. For example, with Netbeans:
Open the Team > Git > Clone… dialog.
-
Select the master* remote branch.
Wait a little bit to clone the full repo.
Build and Run
Congratulations! You have your Sigmah developer environment fully configured with Netbeans!
Below are just a few other Netbeans configuration improvements to make you life a little bit easier with coding Sigmah with Netbeans.
Recommended Netbeans parameters /recommendations for more comfort
Uncheck “Deploy on Save” in Sigmah > right-click > Properties > Run
Use “Clean & Build” instead of only “Build” because GWT generates javascript files with unique different filenames at each build which won’t be replaced: this recommendation will save a lot of disk space.
Click on the “Settings” button in the Tools>Template Manager, and uncomment + edit the “user” param to provide your own name and email address so that new classes will be authored with your name.
Open the “Default License” template in the Tools>Template Manager and empty the file. Licensing in Sigmah is currently made through a unique file at the root file of the source code.
-
Unicode escape characters (ie: \u00e9
) management: Sigmah uses lower case Unicode escape characters. So when editing a properties file which has Unicode escape characters, you can use the command “Convert unicode chars to lowercase” available in the context menu. This command has to be installed through the plugin “Change case of unicode characters”.
Open “Goals…” in Sigmah > right-click > Custom > Goals… and create the new following specific maven execution goals combination which is useful after adding any i18n string
