|
5 | 5 | <artifactId>httpclient-simple</artifactId> |
6 | 6 | <version>0.1-SNAPSHOT</version> |
7 | 7 | <name>httpclient-simple</name> |
| 8 | + <packaging>war</packaging> |
8 | 9 |
|
9 | 10 | <parent> |
10 | 11 | <groupId>com.baeldung</groupId> |
11 | | - <artifactId>parent-java</artifactId> |
| 12 | + <artifactId>parent-spring-5</artifactId> |
12 | 13 | <version>0.0.1-SNAPSHOT</version> |
13 | | - <relativePath>../parent-java</relativePath> |
| 14 | + <relativePath>../parent-spring-5</relativePath> |
14 | 15 | </parent> |
15 | 16 |
|
16 | 17 | <dependencies> |
| 18 | + |
| 19 | + <!-- Spring Security --> |
| 20 | + |
| 21 | + <dependency> |
| 22 | + <groupId>org.springframework.security</groupId> |
| 23 | + <artifactId>spring-security-web</artifactId> |
| 24 | + <version>${spring.version}</version> |
| 25 | + </dependency> |
| 26 | + <dependency> |
| 27 | + <groupId>org.springframework.security</groupId> |
| 28 | + <artifactId>spring-security-config</artifactId> |
| 29 | + <version>${spring.version}</version> |
| 30 | + </dependency> |
| 31 | + |
| 32 | + <!-- Spring --> |
| 33 | + |
| 34 | + <dependency> |
| 35 | + <groupId>org.springframework</groupId> |
| 36 | + <artifactId>spring-core</artifactId> |
| 37 | + <version>${spring.version}</version> |
| 38 | + <exclusions> |
| 39 | + <exclusion> |
| 40 | + <artifactId>commons-logging</artifactId> |
| 41 | + <groupId>commons-logging</groupId> |
| 42 | + </exclusion> |
| 43 | + </exclusions> |
| 44 | + </dependency> |
| 45 | + <dependency> |
| 46 | + <groupId>org.springframework</groupId> |
| 47 | + <artifactId>spring-context</artifactId> |
| 48 | + <version>${spring.version}</version> |
| 49 | + </dependency> |
| 50 | + <dependency> |
| 51 | + <groupId>org.springframework</groupId> |
| 52 | + <artifactId>spring-jdbc</artifactId> |
| 53 | + <version>${spring.version}</version> |
| 54 | + </dependency> |
| 55 | + <dependency> |
| 56 | + <groupId>org.springframework</groupId> |
| 57 | + <artifactId>spring-beans</artifactId> |
| 58 | + <version>${spring.version}</version> |
| 59 | + </dependency> |
| 60 | + <dependency> |
| 61 | + <groupId>org.springframework</groupId> |
| 62 | + <artifactId>spring-aop</artifactId> |
| 63 | + <version>${spring.version}</version> |
| 64 | + </dependency> |
| 65 | + <dependency> |
| 66 | + <groupId>org.springframework</groupId> |
| 67 | + <artifactId>spring-tx</artifactId> |
| 68 | + <version>${spring.version}</version> |
| 69 | + </dependency> |
| 70 | + <dependency> |
| 71 | + <groupId>org.springframework</groupId> |
| 72 | + <artifactId>spring-expression</artifactId> |
| 73 | + <version>${spring.version}</version> |
| 74 | + </dependency> |
| 75 | + |
| 76 | + <dependency> |
| 77 | + <groupId>org.springframework</groupId> |
| 78 | + <artifactId>spring-web</artifactId> |
| 79 | + <version>${spring.version}</version> |
| 80 | + </dependency> |
| 81 | + <dependency> |
| 82 | + <groupId>org.springframework</groupId> |
| 83 | + <artifactId>spring-webmvc</artifactId> |
| 84 | + <version>${spring.version}</version> |
| 85 | + </dependency> |
| 86 | + |
| 87 | + <dependency> |
| 88 | + <groupId>org.springframework</groupId> |
| 89 | + <artifactId>spring-oxm</artifactId> |
| 90 | + <version>${spring.version}</version> |
| 91 | + </dependency> |
| 92 | + |
| 93 | + <!-- marshalling --> |
| 94 | + |
| 95 | + <dependency> |
| 96 | + <groupId>com.fasterxml.jackson.core</groupId> |
| 97 | + <artifactId>jackson-databind</artifactId> |
| 98 | + <version>${jackson.version}</version> |
| 99 | + </dependency> |
| 100 | + |
| 101 | + <dependency> |
| 102 | + <groupId>org.apache.httpcomponents</groupId> |
| 103 | + <artifactId>httpcore</artifactId> |
| 104 | + <version>${httpcore.version}</version> |
| 105 | + <exclusions> |
| 106 | + <exclusion> |
| 107 | + <artifactId>commons-logging</artifactId> |
| 108 | + <groupId>commons-logging</groupId> |
| 109 | + </exclusion> |
| 110 | + </exclusions> |
| 111 | + </dependency> |
| 112 | + |
17 | 113 | <!-- utils --> |
18 | 114 | <dependency> |
19 | 115 | <groupId>org.apache.commons</groupId> |
|
70 | 166 | <version>${wiremock.version}</version> |
71 | 167 | <scope>test</scope> |
72 | 168 | </dependency> |
| 169 | + |
| 170 | + <!-- web --> |
| 171 | + |
| 172 | + <dependency> |
| 173 | + <groupId>javax.servlet</groupId> |
| 174 | + <artifactId>javax.servlet-api</artifactId> |
| 175 | + <version>${javax.servlet.version}</version> |
| 176 | + <scope>provided</scope> |
| 177 | + </dependency> |
| 178 | + |
| 179 | + <dependency> |
| 180 | + <groupId>javax.servlet</groupId> |
| 181 | + <artifactId>jstl</artifactId> |
| 182 | + <version>${jstl.version}</version> |
| 183 | + <scope>runtime</scope> |
| 184 | + </dependency> |
| 185 | + |
| 186 | + <!-- util --> |
| 187 | + |
| 188 | + <dependency> |
| 189 | + <groupId>com.google.guava</groupId> |
| 190 | + <artifactId>guava</artifactId> |
| 191 | + <version>${guava.version}</version> |
| 192 | + </dependency> |
| 193 | + |
| 194 | + <!-- test scoped --> |
| 195 | + |
| 196 | + <dependency> |
| 197 | + <groupId>org.springframework</groupId> |
| 198 | + <artifactId>spring-test</artifactId> |
| 199 | + <version>${spring.version}</version> |
| 200 | + <scope>test</scope> |
| 201 | + </dependency> |
73 | 202 | </dependencies> |
74 | 203 |
|
75 | 204 | <build> |
76 | | - <finalName>httpclient</finalName> |
| 205 | + <finalName>httpclient-simple</finalName> |
77 | 206 | <resources> |
78 | 207 | <resource> |
79 | 208 | <directory>src/main/resources</directory> |
80 | 209 | <filtering>true</filtering> |
81 | 210 | </resource> |
82 | 211 | </resources> |
| 212 | + |
| 213 | + <plugins> |
| 214 | + <plugin> |
| 215 | + <groupId>org.apache.maven.plugins</groupId> |
| 216 | + <artifactId>maven-war-plugin</artifactId> |
| 217 | + <version>${maven-war-plugin.version}</version> |
| 218 | + </plugin> |
| 219 | + <plugin> |
| 220 | + <groupId>org.codehaus.cargo</groupId> |
| 221 | + <artifactId>cargo-maven2-plugin</artifactId> |
| 222 | + <version>${cargo-maven2-plugin.version}</version> |
| 223 | + <configuration> |
| 224 | + <wait>true</wait> |
| 225 | + <container> |
| 226 | + <containerId>jetty8x</containerId> |
| 227 | + <type>embedded</type> |
| 228 | + <systemProperties> |
| 229 | + <!-- <provPersistenceTarget>cargo</provPersistenceTarget> --> |
| 230 | + </systemProperties> |
| 231 | + </container> |
| 232 | + <configuration> |
| 233 | + <properties> |
| 234 | + <cargo.servlet.port>8082</cargo.servlet.port> |
| 235 | + </properties> |
| 236 | + </configuration> |
| 237 | + </configuration> |
| 238 | + </plugin> |
| 239 | + </plugins> |
83 | 240 | </build> |
84 | 241 |
|
85 | 242 | <profiles> |
86 | 243 | <profile> |
87 | 244 | <id>live</id> |
88 | 245 | <build> |
89 | 246 | <plugins> |
| 247 | + <plugin> |
| 248 | + <groupId>org.codehaus.cargo</groupId> |
| 249 | + <artifactId>cargo-maven2-plugin</artifactId> |
| 250 | + <executions> |
| 251 | + <execution> |
| 252 | + <id>start-server</id> |
| 253 | + <phase>pre-integration-test</phase> |
| 254 | + <goals> |
| 255 | + <goal>start</goal> |
| 256 | + </goals> |
| 257 | + </execution> |
| 258 | + <execution> |
| 259 | + <id>stop-server</id> |
| 260 | + <phase>post-integration-test</phase> |
| 261 | + <goals> |
| 262 | + <goal>stop</goal> |
| 263 | + </goals> |
| 264 | + </execution> |
| 265 | + </executions> |
| 266 | + </plugin> |
| 267 | + |
90 | 268 | <plugin> |
91 | 269 | <groupId>org.apache.maven.plugins</groupId> |
92 | 270 | <artifactId>maven-surefire-plugin</artifactId> |
|
98 | 276 | </goals> |
99 | 277 | <configuration> |
100 | 278 | <excludes> |
101 | | - <exclude>**/*ManualTest.java</exclude> |
| 279 | + <exclude>none</exclude> |
102 | 280 | </excludes> |
103 | 281 | <includes> |
104 | 282 | <include>**/*LiveTest.java</include> |
105 | 283 | </includes> |
| 284 | + <systemPropertyVariables> |
| 285 | + <webTarget>cargo</webTarget> |
| 286 | + </systemPropertyVariables> |
106 | 287 | </configuration> |
107 | 288 | </execution> |
108 | 289 | </executions> |
109 | | - <configuration> |
110 | | - <systemPropertyVariables> |
111 | | - <test.mime>json</test.mime> |
112 | | - </systemPropertyVariables> |
113 | | - </configuration> |
114 | 290 | </plugin> |
| 291 | + |
115 | 292 | </plugins> |
116 | 293 | </build> |
117 | 294 | </profile> |
118 | 295 | </profiles> |
119 | 296 |
|
120 | 297 | <properties> |
| 298 | + <!-- various --> |
| 299 | + <jstl.version>1.2</jstl.version> |
| 300 | + <javax.servlet.version>3.1.0</javax.servlet.version> |
121 | 301 | <!-- util --> |
122 | 302 | <guava.version>19.0</guava.version> |
123 | 303 | <commons-lang3.version>3.5</commons-lang3.version> |
124 | 304 | <commons-codec.version>1.10</commons-codec.version> |
125 | 305 | <httpasyncclient.version>4.1.4</httpasyncclient.version> |
126 | 306 | <!-- testing --> |
127 | 307 | <wiremock.version>2.5.1</wiremock.version> |
| 308 | + <httpcore.version>4.4.11</httpcore.version> |
128 | 309 | <httpclient.version>4.5.8</httpclient.version> <!-- 4.3.6 --> <!-- 4.4-beta1 --> |
129 | 310 | <!-- maven plugins --> |
| 311 | + <maven-war-plugin.version>2.6</maven-war-plugin.version> |
130 | 312 | <cargo-maven2-plugin.version>1.6.1</cargo-maven2-plugin.version> |
131 | 313 | </properties> |
132 | 314 |
|
|
0 commit comments