Documentation » History » Version 20
chin-yeh, 09/23/2011 09:53 AM
1 | 2 | chin-yeh | {{toc}} |
---|---|---|---|
2 | |||
3 | 1 | chin-yeh | h1. Documentation |
4 | 3 | chin-yeh | |
5 | h2. List of Components |
||
6 | |||
7 | 7 | chin-yeh | |_.Name|_.Latest Stable Version|_.Description| |
8 | 8 | chin-yeh | |vp-stub|1.0-[version]|the client stub of the VP web services| |
9 | 13 | chin-yeh | |vp-client|1.0.3-[version]|the client application of the VP web services| |
10 | 18 | chin-yeh | |vp-test|1.0.3-SNAPSHOT|the demo application for *vp-client*| |
11 | 17 | chin-yeh | |vp-batch|HEAD tag|the batch program| |
12 | 8 | chin-yeh | |
13 | where *version* refer to: |
||
14 | * *SNAPSHOT* - for development environment |
||
15 | * *RELEASE* - for production environment |
||
16 | 4 | chin-yeh | |
17 | h2. Compile from source files |
||
18 | |||
19 | 20 | chin-yeh | *Important Note:* |
20 | > This section is not applicable to *vp-batch* as its deployment files have to be compiled individually and only upload those which are needed. |
||
21 | |||
22 | 4 | 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 | |||
25 | The source files are stored in: |
||
26 | > [[wiki#scm|SCM]] |
||
27 | |||
28 | *Prerequisite:* |
||
29 | * Eclipse IDE (optional) |
||
30 | * Apache Maven 2 |
||
31 | * CVS client, e.g TortoiseCVS, Eclipse IDE |
||
32 | 11 | chin-yeh | * Project or module name, e.g. vp-client |
33 | 1 | chin-yeh | |
34 | 11 | chin-yeh | 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 | 10 | chin-yeh | |
36 | 11 | chin-yeh | *Steps:* |
37 | # checkout the project or module using the CVS client |
||
38 | # <code>cd</code> to the checkout folder, e.g. vp-client |
||
39 | ** *Example:* |
||
40 | 4 | chin-yeh | <pre> |
41 | 1 | chin-yeh | $ cd vp-client |
42 | 4 | chin-yeh | </pre> |
43 | # execute the maven goal, *clean* and *package*: |
||
44 | 19 | chin-yeh | ** compile for *development* environment: |
45 | *** change the artifact version to *x.x-SNAPSHOT* |
||
46 | 1 | chin-yeh | <pre> |
47 | $ mvn clean package |
||
48 | </pre> |
||
49 | 19 | chin-yeh | ** compile for *production* environment: |
50 | *** change the artifact version to *x.x-RELEASE* |
||
51 | 10 | chin-yeh | <pre> |
52 | $ mvn -P prod clean package |
||
53 | </pre> |
||
54 | # if success, the binary file can be found in the *target* folder |
||
55 | |||
56 | 5 | chin-yeh | |
57 | h2. Programming Guide |
||
58 | |||
59 | See [[Programming Guide]] |
||
60 | 12 | chin-yeh | |
61 | h2. Deployment Guide |
||
62 | |||
63 | 15 | chin-yeh | * [[Deploy vp-client]] |
64 | * [[Deploy vp-batch]] |