Documentation » History » Revision 14
Revision 13 (chin-yeh, 08/24/2011 04:20 PM) → Revision 14/25 (chin-yeh, 08/25/2011 10:04 AM)
{{toc}} h1. Documentation h2. List of Components |_.Name|_.Latest Stable Version|_.Description| |dp-stub|1.1-SNAPSHOT|The client stub of DP web services| |dp-client|1.3.1-SNAPSHOT|The client of DP web services| |dp-test|1.2.3-SNAPSHOT|A demo application for *dp-client*| |dp-batch|1.0-SNAPSHOT| dp related batch programs| The binary of the above components can be found in: > http://192.168.2.13:8081/nexus/ h2. Compile from source files All of the projects are built and maintained using "Maven 2":http://maven.apache.org/. > Those projects can be imported into *Eclipse IDE* but the *m2 Maven* plugin is needed. The *source files* are stored in: > [[wiki#scm|SCM]] *Prerequisite:* * Eclipse IDE (optional) * Apache Maven 2 * CVS client, e.g TortoiseCVS, Eclipse IDE * Project or module name, e.g. dp-client 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. h3. dp-stub *Steps:* # checkout the project or module using the *dp-stub* from CVS client # <code>cd</code> to the checkout folder, e.g. dp-client folder: ** *Example:* <pre> $ cd dp-client dp-stub </pre> # execute the maven goal, *clean* and *package*: ** compile for *development* environment: <pre> *** change $ mvn clean package </pre> # if success, the artifact version binary file can be found in the *target* folder # _(optional)_ to *x.x-SNAPSHOT* deploy the binary to "nexus repository":http://192.168.2.13:50000/redmine/projects/general-info/wiki/#Maven, execute the maven goal, *deploy*: <pre> $ mvn clean package deploy </pre> h3. dp-client # checkout the project *dp-client* from cvs ** compile for *production* environment: # <code>cd</code> to the folder: *** change <pre> $ cd dp-client </pre> # execute the artifact version to *x.x-RELEASE* maven goal, *clean* and *package*: <pre> $ mvn -P prod clean package </pre> # if success, the binary file can be found in the *target* folder # _(optional)_ to deploy the binary to "nexus repository":http://192.168.2.13:50000/redmine/projects/general-info/wiki/#Maven, execute the maven goal, *deploy*: <pre> $ mvn clean deploy </pre>