1+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
3+ <modelVersion >4.0.0</modelVersion >
4+ <groupId >com.baeldung</groupId >
5+ <artifactId >httpclient-simple</artifactId >
6+ <version >0.1-SNAPSHOT</version >
7+ <name >httpclient-simple</name >
8+
9+ <parent >
10+ <groupId >com.baeldung</groupId >
11+ <artifactId >parent-java</artifactId >
12+ <version >0.0.1-SNAPSHOT</version >
13+ <relativePath >../parent-java</relativePath >
14+ </parent >
15+
16+ <dependencies >
17+ <!-- utils -->
18+ <dependency >
19+ <groupId >org.apache.commons</groupId >
20+ <artifactId >commons-lang3</artifactId >
21+ <version >${commons-lang3.version} </version >
22+ </dependency >
23+ <!-- http client -->
24+ <dependency >
25+ <groupId >org.apache.httpcomponents</groupId >
26+ <artifactId >httpclient</artifactId >
27+ <version >${httpclient.version} </version >
28+ <exclusions >
29+ <exclusion >
30+ <artifactId >commons-logging</artifactId >
31+ <groupId >commons-logging</groupId >
32+ </exclusion >
33+ </exclusions >
34+ </dependency >
35+ <dependency >
36+ <groupId >org.apache.httpcomponents</groupId >
37+ <artifactId >fluent-hc</artifactId >
38+ <version >${httpclient.version} </version >
39+ <exclusions >
40+ <exclusion >
41+ <artifactId >commons-logging</artifactId >
42+ <groupId >commons-logging</groupId >
43+ </exclusion >
44+ </exclusions >
45+ </dependency >
46+ <dependency >
47+ <groupId >org.apache.httpcomponents</groupId >
48+ <artifactId >httpmime</artifactId >
49+ <version >${httpclient.version} </version >
50+ </dependency >
51+ <dependency >
52+ <groupId >commons-codec</groupId >
53+ <artifactId >commons-codec</artifactId >
54+ <version >${commons-codec.version} </version >
55+ </dependency >
56+ <dependency >
57+ <groupId >org.apache.httpcomponents</groupId >
58+ <artifactId >httpasyncclient</artifactId >
59+ <version >${httpasyncclient.version} </version > <!-- 4.0.2 --> <!-- 4.1-beta1 -->
60+ <exclusions >
61+ <exclusion >
62+ <artifactId >commons-logging</artifactId >
63+ <groupId >commons-logging</groupId >
64+ </exclusion >
65+ </exclusions >
66+ </dependency >
67+ <dependency >
68+ <groupId >com.github.tomakehurst</groupId >
69+ <artifactId >wiremock</artifactId >
70+ <version >${wiremock.version} </version >
71+ <scope >test</scope >
72+ </dependency >
73+ </dependencies >
74+
75+ <build >
76+ <finalName >httpclient</finalName >
77+ <resources >
78+ <resource >
79+ <directory >src/main/resources</directory >
80+ <filtering >true</filtering >
81+ </resource >
82+ </resources >
83+ </build >
84+
85+ <profiles >
86+ <profile >
87+ <id >live</id >
88+ <build >
89+ <plugins >
90+ <plugin >
91+ <groupId >org.apache.maven.plugins</groupId >
92+ <artifactId >maven-surefire-plugin</artifactId >
93+ <executions >
94+ <execution >
95+ <phase >integration-test</phase >
96+ <goals >
97+ <goal >test</goal >
98+ </goals >
99+ <configuration >
100+ <excludes >
101+ <exclude >**/*ManualTest.java</exclude >
102+ </excludes >
103+ <includes >
104+ <include >**/*LiveTest.java</include >
105+ </includes >
106+ </configuration >
107+ </execution >
108+ </executions >
109+ <configuration >
110+ <systemPropertyVariables >
111+ <test .mime>json</test .mime>
112+ </systemPropertyVariables >
113+ </configuration >
114+ </plugin >
115+ </plugins >
116+ </build >
117+ </profile >
118+ </profiles >
119+
120+ <properties >
121+ <!-- util -->
122+ <guava .version>19.0</guava .version>
123+ <commons-lang3 .version>3.5</commons-lang3 .version>
124+ <commons-codec .version>1.10</commons-codec .version>
125+ <httpasyncclient .version>4.1.4</httpasyncclient .version>
126+ <!-- testing -->
127+ <wiremock .version>2.5.1</wiremock .version>
128+ <httpclient .version>4.5.8</httpclient .version> <!-- 4.3.6 --> <!-- 4.4-beta1 -->
129+ <!-- maven plugins -->
130+ <cargo-maven2-plugin .version>1.6.1</cargo-maven2-plugin .version>
131+ </properties >
132+
133+ </project >
0 commit comments