Project

General

Profile

Build components from sources » History » Version 4

chin-yeh, 02/11/2011 10:41 AM

1 1 chin-yeh
h1. Build components from sources
2 2 chin-yeh
3
This section describes how to compile and build component from source files.
4
5
Most of the projects are built and maintained using Maven and versioning using SVN. Therefore, you should be familiar with the tools below:
6
* Maven http://maven.apache.org/
7
* SVN http://subversion.apache.org/
8
* *nix shell commands
9
10 4 chin-yeh
*Requires the following software to be installed in the build environment:*
11 2 chin-yeh
* Maven http://maven.apache.org/
12
* SVN http://subversion.apache.org/
13
14
Before continue, please prepare the following information:
15
* module or component name, e.g. _ecwyadaptor_
16
* module or component version, e.g. _1.0-SNAPSHOT_
17
* the SVN URL, e.g. http://192.168.2.13:50000/svn/qconnector/tags/{module_name}_{module_version}/{module_name}
18
19 3 chin-yeh
For demonstrate purpose, we will build the following module:
20 2 chin-yeh
* *module name:* soap-adaptor
21
* *module version:* 0.5.2-SNAPSHOT
22
* *SVN URL:* http://192.168.2.13:50000/svn/qconnector/tags/soap-adaptor_0_5_2_SNAPSHOT/soap-adaptor
23
** dot(.) is not allowed in tag name so replace the dot with underscore(_)
24
25
*Steps:*
26
# checkout the project from SVN
27
<pre>
28
$ svn co http://192.168.2.13:50000/svn/qconnector/tags/soap-adaptor_0_5_2_SNAPSHOT/soap-adaptor
29
</pre>
30
# <code>cd</code> to the checkout-ed folder, <code>soap-adaptor</code>
31
<pre>
32
$ cd soap-adaptor
33
</pre>
34
# execute the maven command to compile and build the module:
35
<pre>
36
$ mvn clean package
37
</pre>
38
## You could skip the unit tests but *strongly* not recommended:
39
<pre>
40
$ mvn -Dmaven.test.skip=true clean package
41
</pre>
42
# if no error, the binary file of the module can be found in *target/{module name}-{module version}.jar*, e.g. _soapadaptor-0.5.2-SNAPSHOT.jar_
43
# done