Project

General

Profile

Documentation » History » Version 19

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