Documentation » History » Version 14
chin-yeh, 08/25/2011 10:04 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 | 3 | chin-yeh | |dp-stub|1.1-SNAPSHOT|The client stub of DP web services| |
9 | 7 | chin-yeh | |dp-client|1.3.1-SNAPSHOT|The client of DP web services| |
10 | 13 | chin-yeh | |dp-test|1.2.3-SNAPSHOT|A demo application for *dp-client*| |
11 | 11 | chin-yeh | |dp-batch|1.0-SNAPSHOT| dp related batch programs| |
12 | 3 | chin-yeh | |
13 | The binary of the above components can be found in: |
||
14 | > http://192.168.2.13:8081/nexus/ |
||
15 | |||
16 | 10 | chin-yeh | h2. Compile from source files |
17 | 3 | chin-yeh | |
18 | 8 | chin-yeh | All of the projects are built and maintained using "Maven 2":http://maven.apache.org/. |
19 | > Those projects can be imported into *Eclipse IDE* but the *m2 Maven* plugin is needed. |
||
20 | 3 | chin-yeh | |
21 | 9 | chin-yeh | The *source files* are stored in: |
22 | > [[wiki#scm|SCM]] |
||
23 | |||
24 | 3 | chin-yeh | *Prerequisite:* |
25 | * Eclipse IDE (optional) |
||
26 | * Apache Maven 2 |
||
27 | * CVS client, e.g TortoiseCVS, Eclipse IDE |
||
28 | 14 | chin-yeh | * Project or module name, e.g. dp-client |
29 | 1 | chin-yeh | |
30 | 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. |
31 | 1 | chin-yeh | |
32 | 14 | chin-yeh | *Steps:* |
33 | # checkout the project or module using the CVS client |
||
34 | # <code>cd</code> to the checkout folder, e.g. dp-client |
||
35 | ** *Example:* |
||
36 | 3 | chin-yeh | <pre> |
37 | $ cd dp-client |
||
38 | </pre> |
||
39 | # execute the maven goal, *clean* and *package*: |
||
40 | 14 | chin-yeh | ** compile for *development* environment: |
41 | *** change the artifact version to *x.x-SNAPSHOT* |
||
42 | 3 | chin-yeh | <pre> |
43 | $ mvn clean package |
||
44 | </pre> |
||
45 | 14 | chin-yeh | ** compile for *production* environment: |
46 | *** change the artifact version to *x.x-RELEASE* |
||
47 | 3 | chin-yeh | <pre> |
48 | 14 | chin-yeh | $ mvn -P prod clean package |
49 | 3 | chin-yeh | </pre> |
50 | 14 | chin-yeh | # if success, the binary file can be found in the *target* folder |