Customize Eclipse
The IDE can be customized in many ways to fit your needs. Tools, like SVN (client), Hibernate und Maven can be added to eclipse.
Table of Contents
1 Select Java executable
Eclipse runs in a (Java) virtual machine. On start up Eclipse is run in the first Java executable that is found on the search path. Some Frameworks, like Maven, need a JDK as runtime environment (others are started in a seperate VM). The JDK can be passed to eclipse on start up.
- Create a shortcut (Verknüpfung erstellen)
- Rightclick on icon and select properties (Eigenschaften)
-
Select target and add jdk as vm-argument to eclipse
\copybase\eclipse\eclipse.exe -vm \copybase\Java\jdk1.6\bin
- Doubleclick on icon.
- Select /copybase/emptyworkspace as workspace
In the following use the shortcut to start eclipse. If you add more arguments (or settings) it is best to use a batch-file to start eclipse (see also the settings in eclipse.ini).
2 Configure eclipse
-
Select jdk 1.6 as JRE.
-
Select Window -> Prefernces, filter for JRE, select
Installed JREs and add
/copybase/java/jdk1.6
(if neccessary). Select it as default.
-
Select Window -> Prefernces, filter for JRE, select
Installed JREs and add
-
Install Tomcat as server in order to deploy (run/debug) web-apps
form the development environment.
- In view Package Explorer rightclick and select New -> Other, type server into the inputfield and select Server.
- Open folder Apache and select Tomcat v6.0 Server and click Next.
-
Select
/copybase/apache/tomcat6.x.xx
as directory and Finish.
-
Add JSP/JSF code assist to .xhtml file extension.
- Select Window -> Preferences. Type Editor into the search Field and select Editors -> File Associations.
-
Follow link Content Types, select JSP
and add
*.xhtml
to File associations. -
Follow link File Associations select
*.xhtml
from File Types and add JSP Editor to associated Editor and make it default.
3 Plugins
To manage software sites select Preferences from the Window menue and search for update. Select Available Software Sites.
3.1 Install hibernate plugin
- Open browser, search for hibernate tools, select link Hibernate Tools, copy link-address from link Update site (stable) that page (see Hibernate Tools).
- In Eclipse select Help -> Install new Software, paste link-address into inputfield Work with.
- Use button Add to add the location. (Do not give it a name).
- Select Hibernate Tools from All JBoss Tools 3.2.x
- click button Next til finish, allow restart eclipse.
3.2 Add Maven plugin
The Maven plugin allows to solve dependencies, similar to ant with maven-plugin.
- Start eclipse.
- Select Help -> Install New Software. This should display the Install dialog.
- Copy the Update Site URL on Maven intergration for Eclipse Core Update Site (see m2eclipse) into the field named Work with: and press Enter. This should cause Eclipse to update the list of available items (plugins and components).
- Choose the component listed under m2eclipse: Maven Integration for Eclipse (Required).
- Click Next. Eclipse will then check to see if there are any issues which would prevent a successful installation.
- Click Next and agree to the terms of the Eclipse Public License v1.0.
- Click Finish to begin the installation process. Eclipse will then download and install the necessary components.
- Once the installation process is finished, Eclipse will ask you if you want to restart the IDE. Sonatype strongly recommends that you restart your IDE after installing m2eclipse.
See Maven Repository Browser for repositories and dependency details.
3.3 Add SVN plugin
See SVN plugin, Eclipse and SVN Plugin, Polarion for details.
- Start eclipse.
- Select Help -> Install New Software. This should display the Install dialog.
-
Choose
Helios - http://download.eclipse.org/releases/helios
as Update Site. - Choose the component listed under Collaboration: Subversive SVN Team Provider (Incubation).
- Click Next, agree to the terms of the Eclipse Public License, Click Finish to begin the installation process, restart the IDE.
After restart open perspective SVN Repositories, and install SVN connectors if neccessary.
- Choose perspective SNV Repository Exploring
-
If pop-up Install Connectors opens, select checkbox SVN Kit 1.3.2 and click Finish.
Otherwise
- Select Help -> Install New Software. This should display the Install dialog.
-
Choose Update Site
http://community.polarion.com/projects/subversive/download/eclipse/2.0/helios-site/
- Choose the component listed under Subversive SVN Connectors: SVNKit 1.3.x Implementation and finish installation.
Add Repository location.
- Choose perspective SNV Repository Exploring
- Rightclick in tab SVN Repository and select New -> Repository Location
-
Enter server-URL. Use protocol svn to specify the server (or
file:///
for a local repository). Enter svn user and password and don't forget to select the checkbox Save Password.
Manage projects
-
Add project to repository.
- Rightclick on project, select Team -> Share Project. Select SVN and repository location from the wizard. Commit contents of the project.
-
Checkout project(s).
- Use perspective SNV Repository Exploring. Rightclick on project in repository tree and select Check out.
- You can use the import wizard from the eclipse File menue to create new projects from a svn-repository.
-
Synchronize.
- To synchronize a project, folder or file, rightclick in it and sekect Team and select the resp. action, e.g commit, update revert, Add to Version control.
- To synchronize your workspace use perspective Team Synchronization. Choose Icon Synchronize (left icon in menue-bar of sysnchronize-tab) and select synchronization type SVN. The view shows the items which have changed (locally or in the repository) since last synchronization. Select items and the desired action from the menue (or rightclick on items).
Date: 2011-02-11 Fr
HTML generated by org-mode 7.4 in emacs 22