Setup Eclipse
Setup Eclipse
TDLsDSpaceCustomizationTraining May13th2009@Baylor
ThisguidedescribeshowtoinstallandconfigureEclipsewithseveralpluginsto workinadevelopmentenvironmentforDSpacewithTomcat. Versions: Eclipse3.4.x Tomcat5.xor6.x DSpace1.5.x
1) DownloadEclipse
ObtainafreshversionofEclipsefromtheofficialsite.SelecttheEclipseIDEfor JavaDeveloperstypeofdistribution.Oncedownloaded,unpackthesoftware whereyouwouldlikeittobeinstalled.Itisbestifyoudonotstarteclipseyet untilafterstep#2. http://www.eclipse.org/downloads/
2) InstalltheSysdeoTomcatplugin
FirstdownloadtheSysdeoTomcatplugin,thelatestversion,thenuncompress softwareintoEclipsesplugindirectory.NextstartEclipseforthefirsttime.If youhavepreviouslystartedeclipseitmaynotrecognizethenewplugin,inthis caseyouneedtostartEclipsewiththecleanoption. http://www.eclipsetotale.com/tomcatPlugin.html
3) InstalltheSVNplugins
Forthesepluginsyouwillbeabletousethestandardplugininstallprocedure. BeginbyselectingHelp>SoftwareUpdatesfromthemainmenu.Whenthe softwareupdatedialogboxopensselecttheAvailableSoftwaretab.Thenfor eachofthefollowingURLsclicktheAddSitebutton. (Subversiveplugin) http://download.eclipse.org/technology/subversive/0.7/updatesite/ (SubversiveSVNConnectors) http://www.polarion.org/projects/subversive/download/eclipse/2.0/
Nowyoushouldhavethesenewsitesavailable,underneatheachselectthe followingcomponents: SubversiveSVNTeamProviderSources SubversiveSVNJDTIgnoreExtensions SubversiveSVNTeamProvider SubversiveSVNTeamProviderLocalization SubversiveSVNJDTIgnoreExtensions NativeJavaHL1.5Implementation NativeJavaHL1.6Implementation SubversiveSVNConnectors SVNKit1.2.2Implementation SVNKit1.3.0Implementation
4) InstalltheMavenplugins
Asbefore,forthemavenpluginsyouwillbeabletousethestandardinstall procedure.Again,startbyselectingHelp>SoftwareUpdatesfromthemain
ThenclicktheInstallbuttonasbefore.
5) CheckouttheDSpacesourcecode
IftheWelcometabisup,clickthatawaytoreturntotheworkbench.Intheleft handpanelselectNew>Projectfromthecontextmenu.
ThiswillbringupaSelectawizarddialogbox,selecttheProjectfromSVN wizzardandclickthenextbutton.IntheCheckoutfromSVNdialogboxenter thefollowingURLintheappropratefield.Leaveallotherfieldsonthisdialogbox astheirdefaults,thenclicknext. https://dspace.svn.sourceforge.net/svnroot/dspace Youmaybeaskedtoacceptthecertificateoftherepository,acceptit. ThenextdialogscreenthatwillappearisSelectaresource.Inthisdialogbox, clicktheBrowsebuttontoselecttheversionofDSpace.Navigateto dspace/tags/dspace1_5_1andclicktheOKbutton.FinalyclicktheFinished buttonontheselectaresourcedialogbox. ThenextsteppresentstheCheckOutAsdialogbox,selectthelastoption Checkoutasaprojectwiththenamespecified:usinganynameyouchoose.
6) ConfigureMaven
ThenextstepistotellthemavenpluginhowtobuildDSpace.Firstbeginby enablingMaven.Fromtheworkbench,rightclickontheprojecttobringupthe contextmenu,thenselectMaven>EnableDependencyManagement
Finally,DSpaceshouldreportnocompileerrors.Youshouldalsoseeanewsetof foldersinsidetheprojectthatlooksimilartothepicturebelow.
Thenextstepistosetuparuntimebuildcommand.Fromthetoptoolbar,select thegreenarrow>RunConfigurationsasshownbelow:
7) ConfigureTomcat
FirstsomeglobalparametersneedtobesetupforTomcattoworkinanyproject, thenyourprojectmustbeconfiguredtouseTomcat.Beginbyselectingthemain Eclipsepreferences,Eclipse>Preferencesfromthemainmenu(under windowsthismaybelocatedintheFilemenu)
NextselecttheTomcatManagerAppfromthelefthandhierarchy.andenter yourTomcatusernameandpassword.ThenclickOK.
ThenclickOK.
8) Deploywebapplication