Today I will tell you all how I added spring capabilities to the Eclipse IDE using release update site.
EDIT: Removed Galileo(3.5) and added Indigo(3.7) update sites.
Installing from the Release Update Site
The SpringSource Tool Suite components and dependencies can be installed from an update site into 3.6 and 3.7-based Eclipse installations.
1. The installation will only succeed if the following pre-requisites are fulfilled:
a. Eclipse 3.6 or Eclipse 3.7
b. Eclipse WTP 3.2 or greater
It is easiest to start with a download of the “Eclipse IDE for JEE Developers” package available from http://www.eclipse.org/downloads/
2. Disable all update sites in the Eclipse Update Manager:
a. Open Preferences -> Install/Update -> Available Update Sites in Eclipse
b. Select all enabled update sites and disable all sites by clicking the “Disable” button on the right (once a disabled update site is selected the “Enable” button will change to “Disable”).
c. Click “OK” to close the preferences and save your changes.
3. Configure STS-related update sites:
a. Download one of the following bookmarks file suitable for your Eclipse version and save it to your harddrive:
• Eclipse 3.6: http://dist.springsource.com/release/TOOLS/composite/e3.6/bookmarks.xml
• Eclipse 3.7: http://dist.springsource.com/release/TOOLS/composite/e3.7/bookmarks.xml
b. Open Preferences -> Install/Update -> Available Update Sites in Eclipse
c. Click the “Import…” button and select the downloaded bookmarks.xml. Click “Open” to finish the import.
d. Verify that the dialog list the following update sites as enabled.
• SpringSource Update Site for Eclipse 3.6 (Release)
• SpringSource Update Site for Eclipse 3.6 (Release + Dependencies)
• SpringSource Update Site for Eclipse 3.7 (Release)
• SpringSource Update Site for Eclipse 3.7 (Release + Dependencies)
c. If those update sites are correctly listed close the preference pane by clicking “OK”.
4. Install STS components from the update manager:
a. Open the update manager from Help -> Install New Software …
b. From the “Work with” drop-down select the update site with the name “SpringSource Update Site for Eclipse 3.6” or “SpringSource Update Site for Eclipse 3.7” depending on your Eclipse version
c. Select the components as shown in the following screenshot:
d. Click “Next >” to start the installation process.
e. Click “Next >” on the Install Details wizard page.
f. Select “I accept the terms of the license agreement” on the Review License wizard page and click “Finish”.
g. This will now start the installation process and download all required components.
h. Click “OK” on the Security Warning dialog.
i. Restart Eclipse when prompted in the Software Updates dialog to finish the installation.
5. Verify the installation:
a. Open the about dialog from Help -> About Eclipse or Eclipse -> About Eclipse. The dialog should list the Spring IDE and SpringSource logo as shown in the following screenshot
b. Open the “Spring” perspective from Window -> Open Perspective -> Other… -> Spring.
So, this is how I did it. Now I am enjoying coding Spring programs in Eclipse IDE.
Please do comment if you have any query.
Manohar Bhattarai (मनोहर भट्टराई)
Facebook : http://www.facebook.com/pages/Manohar-Bhattarai/130973796914160
Twitter : http://twitter.com/mhrbhattarai
Identica : http://identi.ca/manoharbhattarai