|
18 | 18 | </parent> |
19 | 19 |
|
20 | 20 | <dependencies> |
| 21 | + |
21 | 22 | <dependency> |
22 | 23 | <groupId>org.springframework.boot</groupId> |
23 | 24 | <artifactId>spring-boot-starter-security</artifactId> |
24 | 25 | </dependency> |
25 | | - <dependency> |
| 26 | + <dependency> |
26 | 27 | <groupId>org.springframework.boot</groupId> |
27 | 28 | <artifactId>spring-boot-starter-web</artifactId> |
28 | 29 | </dependency> |
29 | | - |
| 30 | + <dependency> |
| 31 | + <groupId>org.apache.tomcat</groupId> |
| 32 | + <artifactId>tomcat-catalina</artifactId> |
| 33 | + <version>${tomcat.version}</version> |
| 34 | + </dependency> |
30 | 35 | <dependency> |
31 | 36 | <groupId>org.springframework.boot</groupId> |
32 | 37 | <artifactId>spring-boot-starter-tomcat</artifactId> |
|
54 | 59 | <groupId>com.h2database</groupId> |
55 | 60 | <artifactId>h2</artifactId> |
56 | 61 | </dependency> |
57 | | - |
| 62 | + |
58 | 63 | <dependency> |
59 | 64 | <groupId>org.springframework.boot</groupId> |
60 | 65 | <artifactId>spring-boot-starter-test</artifactId> |
61 | 66 | <scope>test</scope> |
62 | 67 | </dependency> |
63 | | - |
| 68 | + |
64 | 69 | <dependency> |
65 | 70 | <groupId>junit</groupId> |
66 | 71 | <artifactId>junit</artifactId> |
|
97 | 102 | <artifactId>spring-test</artifactId> |
98 | 103 | <scope>test</scope> |
99 | 104 | </dependency> |
| 105 | + |
| 106 | + <dependency> |
| 107 | + <groupId>org.springframework.security</groupId> |
| 108 | + <artifactId>spring-security-test</artifactId> |
| 109 | + <scope>test</scope> |
| 110 | + </dependency> |
100 | 111 |
|
101 | 112 | <dependency> |
102 | 113 | <groupId>org.apache.derby</groupId> |
|
140 | 151 | <artifactId>jstl-api</artifactId> |
141 | 152 | <version>${jstl.version}</version> |
142 | 153 | </dependency> |
143 | | - |
| 154 | + |
144 | 155 | </dependencies> |
145 | 156 |
|
146 | 157 | <build> |
|
158 | 169 | <excludes> |
159 | 170 | <exclude>**/*IntegrationTest.java</exclude> |
160 | 171 | <exclude>**/*LiveTest.java</exclude> |
| 172 | + <exclude>**/*EntryPointsTest.java</exclude> |
161 | 173 | </excludes> |
162 | 174 | <systemPropertyVariables> |
163 | 175 | <!-- <provPersistenceTarget>h2</provPersistenceTarget> --> |
|
279 | 291 | </plugins> |
280 | 292 | </build> |
281 | 293 | </profile> |
| 294 | + |
| 295 | + <profile> |
| 296 | + <id>entryPoints</id> |
| 297 | + <build> |
| 298 | + |
| 299 | + <plugins> |
| 300 | + |
| 301 | + <plugin> |
| 302 | + <groupId>org.apache.maven.plugins</groupId> |
| 303 | + <artifactId>maven-surefire-plugin</artifactId> |
| 304 | + <executions> |
| 305 | + <execution> |
| 306 | + <phase>integration-test</phase> |
| 307 | + <goals> |
| 308 | + <goal>test</goal> |
| 309 | + </goals> |
| 310 | + <configuration> |
| 311 | + <excludes> |
| 312 | + <exclude>**/*LiveTest.java</exclude> |
| 313 | + <exclude>**/*IntegrationTest.java</exclude> |
| 314 | + </excludes> |
| 315 | + <includes> |
| 316 | + <include>**/*EntryPointsTest.java</include> |
| 317 | + </includes> |
| 318 | + </configuration> |
| 319 | + </execution> |
| 320 | + </executions> |
| 321 | + <configuration> |
| 322 | + <systemPropertyVariables> |
| 323 | + <test.mime>json</test.mime> |
| 324 | + </systemPropertyVariables> |
| 325 | + </configuration> |
| 326 | + </plugin> |
| 327 | + </plugins> |
| 328 | + |
| 329 | + </build> |
| 330 | + </profile> |
282 | 331 | </profiles> |
283 | 332 |
|
284 | 333 |
|
|
288 | 337 | <!--<start-class>org.baeldung.voter.VoterApplication</start-class>--> |
289 | 338 | <!--If you want to run the example with the multiple logins, comment the tag above and uncomment the one below--> |
290 | 339 | <!--<start-class>org.baeldung.multiplelogin.MultipleLoginApplication</start-class>--> |
| 340 | + <!--If you want to run the example with the multiple http elements, comment the tag above and uncomment the one below--> |
| 341 | + <!--<start-class>org.baeldung.multipleentrypoints.MultipleEntryPointsApplication</start-class>--> |
| 342 | + |
291 | 343 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
292 | 344 | <java.version>1.8</java.version> |
293 | 345 | <derby.version>10.13.1.1</derby.version> |
294 | 346 | <taglibs-standard.version>1.1.2</taglibs-standard.version> |
295 | 347 | <spring-security-taglibs.version>4.2.0.RELEASE</spring-security-taglibs.version> |
296 | | - <spring-security-core.version>4.2.0.RELEASE</spring-security-core.version> |
| 348 | + <spring-security-core.version>4.2.0.RELEASE</spring-security-core.version> |
| 349 | + <spring-security-test.version>4.2.0.RELEASE</spring-security-test.version> |
| 350 | + <tomcat.version>8.5.11</tomcat.version> |
297 | 351 |
|
298 | 352 | <jstl.version>1.2</jstl.version> |
299 | 353 | <rest-assured.version>2.4.0</rest-assured.version> |
|
0 commit comments