|
Page Edited :
SLING :
Setting up Eclipse 3.4 for Sling
Setting up Eclipse 3.4 for Sling has been edited by Mike Mueller (Apr 16, 2009). Content:To setup the Eclipse IDE to work with the Sling project properly seems to be not very straightforward at a first look, but be calm, it's not rocket science to do. This little manual should help you to setup Eclipse for Sling fast. Prerequisites
If you use the Subversive plugin make sure you have installed the "Subversive Integration for M2Eclipse Project" which can be found under the following Eclipse update site: http://community.polarion.com/projects/subversive/download/integrations/update-site/ Make also sure, that you have installed either the "Maven SCM handler for Subclipse" or the "Maven SCM handler for Subversive" Create a new workspaceIt's best to create a new workspace for the sling project:
Get the Sling source
Eclipse will now start to download the source and import the Maven projects. You might encounter some "Problem Occured" dialogs about "An internal error..." but just click OK on those and let Eclipse continue with the import. Be warned: This could take some time (it was 30 minutes on my lap)! Maybe something in sling-builder gets a bit messed up (I didn't ran into that problem, but Pontus reported that) then you can simply fix it with revert:
Build Sling
This should build Sling. Debug Sling in EclipseYou can use remote debugging to debug Sling in Eclipse, here's a little How-To
No you should be able to set breakpoints, evaluate properties, and so on as usual. |
Unsubscribe or edit your notifications preferences
