1 |
HOWTO run the rating field cms in eclipse |
2 |
|
3 |
Prerequisites: |
4 |
|
5 |
[ eclipse ] |
6 |
- run-jetty-run plugin (http://code.google.com/p/run-jetty-run/) |
7 |
add http://run-jetty-run.googlecode.com/svn/trunk/updatesite |
8 |
as an update site, and install the Run Jetty Run feature |
9 |
|
10 |
|
11 |
Prepare project: |
12 |
|
13 |
[ command line ] |
14 |
- in rating-field root project |
15 |
mvn eclipse:eclipse |
16 |
|
17 |
* edit the version number in the eclipse.sh script |
18 |
|
19 |
* Run the eclipse.sh script |
20 |
|
21 |
[ eclipse ] |
22 |
- in Project -> Properties -> Java Build Path -> Source |
23 |
- remove existing source folders |
24 |
- enable "Allow output folders for source folders" |
25 |
- add source folders |
26 |
src/main/webapp/WEB-INF (output: target/classes/WEB-INF) |
27 |
quickstart/layout (output: target/classes/layout) |
28 |
quickstart/skin (output: target/classes/skin) |
29 |
quickstart/xinha (output: target/classes/xinha) |
30 |
|
31 |
* in Project -> Properties -> Java Build Path -> Libraries |
32 |
- remove all jars and class folders from the build path |
33 |
- add all libraries from the lib/ and jetty/ folders |
34 |
- add the classes/ folder as a Class folder |
35 |
|
36 |
|
37 |
Create launch configuration: |
38 |
|
39 |
[ eclipse ] |
40 |
- navigate to Run -> Debug Configurations |
41 |
- add new Jetty Webapp |
42 |
- clear HTTPS port number |
43 |
- set Context to "/cms" |
44 |
- set WebApp dir to "target/classes" |
45 |
|
46 |
|
47 |
Cleanup: |
48 |
|
49 |
[ command line ] |
50 |
* run clean.sh |
51 |
- in rating-field root project |
52 |
mvn eclipse:clean |
53 |
|
54 |
|
55 |
Keeping up: |
56 |
|
57 |
When a new version of the quickstart-war is used, the project can |
58 |
be updated with a small number of steps. Execute the steps marked |
59 |
with a "*", in the order |
60 |
- run clean.sh |
61 |
- edit the version number in eclipse.sh script |
62 |
- run eclipse.sh |
63 |
- update library dependencies |
64 |
|
65 |
|