5
|
1 Building HttpComponents Client
|
|
2 ============================
|
|
3
|
|
4 (1) Requisites
|
|
5 --------------
|
|
6 HttpClient utilizes Maven 2 as a distribution management and packaging tool. Version 2.0.7 or above
|
|
7 is recommended. Maven 2 requires JDK 1.4 or above in order to execute. However, JDK 1.5 or above is
|
|
8 required in order to compile HttpClient.
|
|
9
|
|
10 Maven installation and configuration instructions can be found here:
|
|
11
|
|
12 http://maven.apache.org/run-maven/index.html
|
|
13
|
|
14 (2) Executing test cases
|
|
15
|
|
16 Execute the following command in order to compile and test the components
|
|
17
|
|
18 mvn test
|
|
19
|
|
20 (3) Building packages
|
|
21
|
|
22 Execute the following command in order to build the JAR packages
|
|
23
|
|
24 mvn package
|
|
25
|
|
26 The resultant packages can be found in the target folders of their respective modules
|
|
27
|
|
28 module-client/target/httpclient-<VERSION>.jar
|
|
29 module-httpmime/target/httpmime-<VERSION>.jar
|
|
30
|
|
31 where <VERSION> is the release version
|