Project

General

Profile

Documentation » History » Version 22

chin-yeh, 09/23/2011 10:18 AM

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