1- <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
2- <modelVersion >4.0.0</modelVersion >
3- <groupId >org.baeldung</groupId >
4- <artifactId >httpclient</artifactId >
5- <version >0.1-SNAPSHOT</version >
6-
7- <name >httpclient</name >
8-
9- <dependencies >
10-
11- <!-- utils -->
12-
13- <dependency >
14- <groupId >com.google.guava</groupId >
15- <artifactId >guava</artifactId >
16- <version >${guava.version} </version >
17- </dependency >
18-
19- <dependency >
20- <groupId >org.apache.commons</groupId >
21- <artifactId >commons-lang3</artifactId >
22- <version >${commons-lang3.version} </version >
23- </dependency >
24-
25- <!-- http client -->
26-
27- <dependency >
28- <groupId >org.apache.httpcomponents</groupId >
29- <artifactId >httpclient</artifactId >
30- <version >${httpclient.version} </version >
31- <exclusions >
32- <exclusion >
33- <artifactId >commons-logging</artifactId >
34- <groupId >commons-logging</groupId >
35- </exclusion >
36- </exclusions >
37- </dependency >
38- <dependency >
39- <groupId >org.apache.httpcomponents</groupId >
40- <artifactId >httpcore</artifactId >
41- <version >${httpcore.version} </version >
42- </dependency >
43-
44- <!-- logging -->
45-
46- <dependency >
47- <groupId >org.slf4j</groupId >
48- <artifactId >slf4j-api</artifactId >
49- <version >${org.slf4j.version} </version >
50- </dependency >
51- <dependency >
52- <groupId >ch.qos.logback</groupId >
53- <artifactId >logback-classic</artifactId >
54- <version >${logback.version} </version >
55- <!-- <scope>runtime</scope> -->
56- </dependency >
57- <dependency >
58- <groupId >org.slf4j</groupId >
59- <artifactId >jcl-over-slf4j</artifactId >
60- <version >${org.slf4j.version} </version >
61- <!-- <scope>runtime</scope> --> <!-- some spring dependencies need to compile against jcl -->
62- </dependency >
63- <dependency > <!-- needed to bridge to slf4j for projects that use the log4j APIs directly -->
64- <groupId >org.slf4j</groupId >
65- <artifactId >log4j-over-slf4j</artifactId >
66- <version >${org.slf4j.version} </version >
67- </dependency >
68-
69- <!-- test scoped -->
70-
71- <dependency >
72- <groupId >junit</groupId >
73- <artifactId >junit-dep</artifactId >
74- <version >${junit.version} </version >
75- <scope >test</scope >
76- </dependency >
77-
78- <dependency >
79- <groupId >org.hamcrest</groupId >
80- <artifactId >hamcrest-core</artifactId >
81- <version >${org.hamcrest.version} </version >
82- <scope >test</scope >
83- </dependency >
84- <dependency >
85- <groupId >org.hamcrest</groupId >
86- <artifactId >hamcrest-library</artifactId >
87- <version >${org.hamcrest.version} </version >
88- <scope >test</scope >
89- </dependency >
90-
91- <dependency >
92- <groupId >org.mockito</groupId >
93- <artifactId >mockito-core</artifactId >
94- <version >${mockito.version} </version >
95- <scope >test</scope >
96- </dependency >
97-
98- </dependencies >
99-
100- <build >
101- <finalName >httpclient</finalName >
102- <resources >
103- <resource >
104- <directory >src/main/resources</directory >
105- <filtering >true</filtering >
106- </resource >
107- </resources >
108-
109- <plugins >
110-
111- <plugin >
112- <groupId >org.apache.maven.plugins</groupId >
113- <artifactId >maven-compiler-plugin</artifactId >
114- <version >${maven-compiler-plugin.version} </version >
115- <configuration >
116- <source >1.7</source >
117- <target >1.7</target >
118- </configuration >
119- </plugin >
120-
121- <plugin >
122- <groupId >org.apache.maven.plugins</groupId >
123- <artifactId >maven-surefire-plugin</artifactId >
124- <version >${maven-surefire-plugin.version} </version >
125- </plugin >
126-
127- </plugins >
128-
129- </build >
130-
131- <properties >
132- <!-- Spring -->
133- <org .springframework.version>4.0.4.RELEASE</org .springframework.version>
134- <org .springframework.security.version>3.2.3.RELEASE</org .springframework.security.version>
135-
136- <!-- persistence -->
137- <hibernate .version>4.3.5.Final</hibernate .version>
138- <mysql-connector-java .version>5.1.30</mysql-connector-java .version>
139-
140- <!-- logging -->
141- <org .slf4j.version>1.7.6</org .slf4j.version>
142- <logback .version>1.1.1</logback .version>
143-
144- <!-- various -->
145- <hibernate-validator .version>5.1.1.Final</hibernate-validator .version>
146-
147- <!-- util -->
148- <guava .version>17.0</guava .version>
149- <commons-lang3 .version>3.3.2</commons-lang3 .version>
150-
151- <!-- testing -->
152- <org .hamcrest.version>1.3</org .hamcrest.version>
153- <junit .version>4.11</junit .version>
154- <mockito .version>1.9.5</mockito .version>
155-
156- <httpcore .version>4.3.2</httpcore .version>
157- <httpclient .version>4.3.3</httpclient .version>
158-
159- <rest-assured .version>2.3.1</rest-assured .version>
160-
161- <!-- maven plugins -->
162- <maven-compiler-plugin .version>3.1</maven-compiler-plugin .version>
163- <maven-war-plugin .version>2.4</maven-war-plugin .version>
164- <maven-surefire-plugin .version>2.17</maven-surefire-plugin .version>
165- <maven-resources-plugin .version>2.6</maven-resources-plugin .version>
166- <cargo-maven2-plugin .version>1.4.8</cargo-maven2-plugin .version>
167-
168- </properties >
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 >org.baeldung</groupId >
5+ <artifactId >httpclient</artifactId >
6+ <version >0.1-SNAPSHOT</version >
7+
8+ <name >httpclient</name >
9+
10+ <dependencies >
11+
12+ <!-- utils -->
13+
14+ <dependency >
15+ <groupId >com.google.guava</groupId >
16+ <artifactId >guava</artifactId >
17+ <version >${guava.version} </version >
18+ </dependency >
19+
20+ <dependency >
21+ <groupId >org.apache.commons</groupId >
22+ <artifactId >commons-lang3</artifactId >
23+ <version >${commons-lang3.version} </version >
24+ </dependency >
25+
26+ <!-- http client -->
27+
28+ <dependency >
29+ <groupId >org.apache.httpcomponents</groupId >
30+ <artifactId >httpclient</artifactId >
31+ <version >${httpclient.version} </version >
32+ <exclusions >
33+ <exclusion >
34+ <artifactId >commons-logging</artifactId >
35+ <groupId >commons-logging</groupId >
36+ </exclusion >
37+ </exclusions >
38+ </dependency >
39+ <dependency >
40+ <groupId >org.apache.httpcomponents</groupId >
41+ <artifactId >httpcore</artifactId >
42+ <version >${httpcore.version} </version >
43+ </dependency >
44+
45+ <dependency >
46+ <groupId >org.apache.httpcomponents</groupId >
47+ <artifactId >fluent-hc</artifactId >
48+ <version >4.3.3</version >
49+ </dependency >
50+
51+ <dependency >
52+ <groupId >org.apache.httpcomponents</groupId >
53+ <artifactId >httpmime</artifactId >
54+ <version >4.3.3</version >
55+ </dependency >
56+
57+ <dependency >
58+ <groupId >commons-codec</groupId >
59+ <artifactId >commons-codec</artifactId >
60+ <version >1.9</version >
61+ </dependency >
62+
63+ <!-- logging -->
64+
65+ <dependency >
66+ <groupId >org.slf4j</groupId >
67+ <artifactId >slf4j-api</artifactId >
68+ <version >${org.slf4j.version} </version >
69+ </dependency >
70+ <dependency >
71+ <groupId >ch.qos.logback</groupId >
72+ <artifactId >logback-classic</artifactId >
73+ <version >${logback.version} </version >
74+ <!-- <scope>runtime</scope> -->
75+ </dependency >
76+ <dependency >
77+ <groupId >org.slf4j</groupId >
78+ <artifactId >jcl-over-slf4j</artifactId >
79+ <version >${org.slf4j.version} </version >
80+ <!-- <scope>runtime</scope> --> <!-- some spring dependencies need to compile against jcl -->
81+ </dependency >
82+ <dependency > <!-- needed to bridge to slf4j for projects that use the log4j APIs directly -->
83+ <groupId >org.slf4j</groupId >
84+ <artifactId >log4j-over-slf4j</artifactId >
85+ <version >${org.slf4j.version} </version >
86+ </dependency >
87+
88+ <!-- test scoped -->
89+
90+ <dependency >
91+ <groupId >junit</groupId >
92+ <artifactId >junit-dep</artifactId >
93+ <version >${junit.version} </version >
94+ <scope >test</scope >
95+ </dependency >
96+
97+ <dependency >
98+ <groupId >org.hamcrest</groupId >
99+ <artifactId >hamcrest-core</artifactId >
100+ <version >${org.hamcrest.version} </version >
101+ <scope >test</scope >
102+ </dependency >
103+ <dependency >
104+ <groupId >org.hamcrest</groupId >
105+ <artifactId >hamcrest-library</artifactId >
106+ <version >${org.hamcrest.version} </version >
107+ <scope >test</scope >
108+ </dependency >
109+
110+ <dependency >
111+ <groupId >org.mockito</groupId >
112+ <artifactId >mockito-core</artifactId >
113+ <version >${mockito.version} </version >
114+ <scope >test</scope >
115+ </dependency >
116+
117+ </dependencies >
118+
119+ <build >
120+ <finalName >httpclient</finalName >
121+ <resources >
122+ <resource >
123+ <directory >src/main/resources</directory >
124+ <filtering >true</filtering >
125+ </resource >
126+ </resources >
127+
128+ <plugins >
129+
130+ <plugin >
131+ <groupId >org.apache.maven.plugins</groupId >
132+ <artifactId >maven-compiler-plugin</artifactId >
133+ <version >${maven-compiler-plugin.version} </version >
134+ <configuration >
135+ <source >1.7</source >
136+ <target >1.7</target >
137+ </configuration >
138+ </plugin >
139+
140+ <plugin >
141+ <groupId >org.apache.maven.plugins</groupId >
142+ <artifactId >maven-surefire-plugin</artifactId >
143+ <version >${maven-surefire-plugin.version} </version >
144+ </plugin >
145+
146+ </plugins >
147+
148+ </build >
149+
150+ <properties >
151+ <!-- Spring -->
152+ <org .springframework.version>4.0.4.RELEASE</org .springframework.version>
153+ <org .springframework.security.version>3.2.3.RELEASE</org .springframework.security.version>
154+
155+ <!-- persistence -->
156+ <hibernate .version>4.3.5.Final</hibernate .version>
157+ <mysql-connector-java .version>5.1.30</mysql-connector-java .version>
158+
159+ <!-- logging -->
160+ <org .slf4j.version>1.7.6</org .slf4j.version>
161+ <logback .version>1.1.1</logback .version>
162+
163+ <!-- various -->
164+ <hibernate-validator .version>5.1.1.Final</hibernate-validator .version>
165+
166+ <!-- util -->
167+ <guava .version>17.0</guava .version>
168+ <commons-lang3 .version>3.3.2</commons-lang3 .version>
169+
170+ <!-- testing -->
171+ <org .hamcrest.version>1.3</org .hamcrest.version>
172+ <junit .version>4.11</junit .version>
173+ <mockito .version>1.9.5</mockito .version>
174+
175+ <httpcore .version>4.3.2</httpcore .version>
176+ <httpclient .version>4.3.3</httpclient .version>
177+
178+ <rest-assured .version>2.3.1</rest-assured .version>
179+
180+ <!-- maven plugins -->
181+ <maven-compiler-plugin .version>3.1</maven-compiler-plugin .version>
182+ <maven-war-plugin .version>2.4</maven-war-plugin .version>
183+ <maven-surefire-plugin .version>2.17</maven-surefire-plugin .version>
184+ <maven-resources-plugin .version>2.6</maven-resources-plugin .version>
185+ <cargo-maven2-plugin .version>1.4.8</cargo-maven2-plugin .version>
186+
187+ </properties >
169188
170189</project >
0 commit comments