Documentation » History » Version 16
chin-yeh, 08/25/2011 10:32 AM
1 | 1 | chin-yeh | {{toc}} |
---|---|---|---|
2 | |||
3 | h1. Documentation |
||
4 | |||
5 | 3 | chin-yeh | h2. List of Components |
6 | 1 | chin-yeh | |
7 | 12 | chin-yeh | |_.Name|_.Latest Stable Version|_.Description| |
8 | 16 | chin-yeh | |dp-stub|1.1-[version]|The client stub of DP web services| |
9 | |dp-client|1.3.2-[version]|The client of DP web services| |
||
10 | 1 | chin-yeh | |dp-test|1.2.3-SNAPSHOT|A demo application for *dp-client*| |
11 | |dp-batch|1.0-SNAPSHOT| dp related batch programs| |
||
12 | 16 | chin-yeh | |
13 | where *version* refer to: |
||
14 | * *SNAPSHOT* - for development environment |
||
15 | * *RELEASE* - for production environment |
||
16 | 3 | chin-yeh | |
17 | The binary of the above components can be found in: |
||
18 | > http://192.168.2.13:8081/nexus/ |
||
19 | |||
20 | 10 | chin-yeh | h2. Compile from source files |
21 | 3 | chin-yeh | |
22 | 8 | chin-yeh | All of the projects are built and maintained using "Maven 2":http://maven.apache.org/. |
23 | > Those projects can be imported into *Eclipse IDE* but the *m2 Maven* plugin is needed. |
||
24 | 3 | chin-yeh | |
25 | 9 | chin-yeh | The *source files* are stored in: |
26 | > [[wiki#scm|SCM]] |
||
27 | |||
28 | 3 | chin-yeh | *Prerequisite:* |
29 | * Eclipse IDE (optional) |
||
30 | * Apache Maven 2 |
||
31 | * CVS client, e.g TortoiseCVS, Eclipse IDE |
||
32 | 14 | chin-yeh | * Project or module name, e.g. dp-client |
33 | 1 | chin-yeh | |
34 | 14 | chin-yeh | By default, all of the project is configured to include *development properties files* when packaging the binary file. To include production properties files, activate the *prod* profile. |
35 | 1 | chin-yeh | |
36 | 14 | chin-yeh | *Steps:* |
37 | # checkout the project or module using the CVS client |
||
38 | # <code>cd</code> to the checkout folder, e.g. dp-client |
||
39 | ** *Example:* |
||
40 | 3 | chin-yeh | <pre> |
41 | $ cd dp-client |
||
42 | </pre> |
||
43 | # execute the maven goal, *clean* and *package*: |
||
44 | 14 | chin-yeh | ** compile for *development* environment: |
45 | *** change the artifact version to *x.x-SNAPSHOT* |
||
46 | 3 | chin-yeh | <pre> |
47 | $ mvn clean package |
||
48 | </pre> |
||
49 | 14 | chin-yeh | ** compile for *production* environment: |
50 | *** change the artifact version to *x.x-RELEASE* |
||
51 | 3 | chin-yeh | <pre> |
52 | 14 | chin-yeh | $ mvn -P prod clean package |
53 | 3 | chin-yeh | </pre> |
54 | 14 | chin-yeh | # if success, the binary file can be found in the *target* folder |
55 | 15 | chin-yeh | |
56 | h2. Programming Guide |
||
57 | |||
58 | See [[Programming Guide]] |
||
59 | |||
60 | h2. Deployment Guide |
||
61 | |||
62 | * [[Deploy dp-client]] |