Project

General

Profile

20100202UsingStandardEclipseWithPrototype.txt

Download and configure eclipse for use on CNService prototype project - Robert Waltz, 2010-02-02 21:45

Download (3.95 KB)

 
1
Install Eclipse
2

    
3

    
4
Goto Eclipse Downloads
5
http://www.eclipse.org/downloads/
6

    
7
Download latest version of Eclipse IDE for Java EE Developers
8
(for my setup named eclipse-jee-galileo-SR1-linux-gtk-x86_64.tar.gz)
9

    
10
I maintain all my dowloaded and active open source software in a folder in my home directory named share.So i unpack the tarred gzipped file into ~/share/eclipse
11

    
12
open up eclipse.ini and change some java startup configuration parameters:
13
-Xms40m
14
-Xmx512m
15
to 
16
-Xms128m
17
-Xmx1024m
18
 
19
I added eclipse to my Programming folder in my Applications dropdown, but that is solely for my convenience.
20

    
21
At this time, you may start up eclipse
22

    
23

    
24
Install Subversion Support
25

    
26

    
27
Under help menu item, choose check for updates
28

    
29
(but make certain a separate svn client is installed on your machine)
30

    
31
Add Svn connector from main repo. when configuring to check out stuff choose the heighest available connector available..
32

    
33
Then choose 'Install New Software'
34
In the Dropdown beside 'Work with' choose
35
'Galileo - http://download.eclipse.org/releases/galileo'
36
While in the filter text area, type 'Subversive'
37
Choose the Subversive SVN Team Provider then click Next > then Next >
38
Accept the software conditions and then click Finish.
39
After downloading, restart eclipse
40

    
41

    
42
Install Maven Support
43

    
44

    
45
Go back to Help > Install new software
46

    
47
Click on the Add button beside 'Work with'
48
type 'Maven' for the name and 'http://m2eclipse.sonatype.org/update/' for the url
49

    
50
while in the filter text area type 'Maven'
51

    
52
Install Mvn plugin from the maven eclipse plugin site.
53
Click on the 'Maven Integration for Eclipse'
54
  'Maven POM Editor', 
55
  'Maven POM XML Editor',
56
  'Maven: The Definitive Guide book' and 
57
  'Maven Integration for WTP'
58
Click Next > then Next > 
59
Accept the software conditions and then click Finish.
60
Click OK on any security warning and after downloading, restart eclipse.
61

    
62

    
63
Download SVN project into new workspace
64

    
65

    
66
Close Eclipse
67

    
68
I first downloaded the cn_prototype directory via subversion on command line into the eclipse workspace directoy of choice. My personal choice is ~/Projects/Eclipse/CNPrototype
69

    
70
so I executed from my home directory:
71

    
72
svn co https://repository.dataone.org/software/cicore/trunk/cn_service/cn_prototype Projects/Eclipse/CNPrototype
73

    
74

    
75
Import Mvn Project
76

    
77

    
78
I then opened up eclipse, pointed to the CNPrototype directory as a new workspace.
79
Under 'Window' on the Menu bar, goto 'Show View' and select  Project Explorer.
80

    
81
Then go to 'File' on Menu bar and choose 'Import'
82
Select 'General', 'Maven Projects' and then 'Next >'
83

    
84
In Root Directory, click the Browse button and choose CNPrototype, then click 'Finish'.
85

    
86
It will take a while to import the Maven Projects, but at this time you should have 
87
DataONE-CnDomain
88
DataONE-CnPrototype
89
DataONE-CnRestService
90
and possibly others 
91

    
92
You should see the J and M next to the projects representing the Java and Maven decorators for the Projects.
93

    
94

    
95
Integrate SVN checkout with Team Eclipse
96

    
97
Right click on DataONE-CnDomain project.
98

    
99
Choose Team > Share Project ...
100

    
101
Under Select Repository type click SVN.
102

    
103
Immediately, Subversive Connectory Discovery window should popup.  click on SVN Kit 1.3.0 (unless a higher version is listed). Then click 'Finish'.\
104

    
105
And 'Install' window should then popup. Accept the defaults and click 'Next >' and then 'Next >'
106
Accept the software conditions and then click Finish.
107

    
108
A software error may popup, just ignore it. After updates are complete, Eclipse will ask if you want to restart, click 'Restart'.
109

    
110
So, Now you will have to Start over...
111

    
112
Right click on DataONE-CnDomain project.
113

    
114
Choose Team > Share Project ...
115

    
116
Under Select Repository type click SVN.
117

    
118
Hopefully, the project URL is already filled in and you just have to click 'Next >'
119
Type in your Username and Password and click 'Finish'
120

    
121
repeat for DataONE-CnPrototype and DataONE-CnRestService (except you will not have to provide username/passwd again)
122

    
123
You are now done.
124

    
125
But to use, you may wish to highlight each project, Goto Menu and select Project > Update All Maven Dependencies
126

    
127

    
128

    
Add picture from clipboard (Maximum size: 14.8 MB)