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 >parent-boot-2</artifactId >
6+ <version >0.0.1-SNAPSHOT</version >
7+ <packaging >pom</packaging >
8+ <name >Parent Boot 2</name >
9+ <description >Parent for all spring boot 2 modules</description >
10+
11+ <parent >
12+ <groupId >org.springframework.boot</groupId >
13+ <artifactId >spring-boot-starter-parent</artifactId >
14+ <version >2.0.1.RELEASE</version >
15+ <relativePath />
16+ </parent >
17+
18+ <dependencies >
19+ <dependency >
20+ <groupId >junit</groupId >
21+ <artifactId >junit</artifactId >
22+ <scope >test</scope >
23+ </dependency >
24+ <dependency >
25+ <groupId >io.rest-assured</groupId >
26+ <artifactId >rest-assured</artifactId >
27+ <version >${rest-assured.version} </version >
28+ </dependency >
29+ <dependency >
30+ <groupId >org.springframework.boot</groupId >
31+ <artifactId >spring-boot-starter-test</artifactId >
32+ <scope >test</scope >
33+ </dependency >
34+ </dependencies >
35+
36+ <build >
37+ <plugins >
38+ <plugin >
39+ <groupId >org.springframework.boot</groupId >
40+ <artifactId >spring-boot-maven-plugin</artifactId >
41+ </plugin >
42+ <plugin >
43+ <groupId >org.apache.maven.plugins</groupId >
44+ <artifactId >maven-surefire-plugin</artifactId >
45+ <version >${maven-surefire-plugin.version} </version >
46+ <configuration >
47+ <forkCount >3</forkCount >
48+ <reuseForks >true</reuseForks >
49+ <excludes >
50+ <exclude >**/*IntegrationTest.java</exclude >
51+ <exclude >**/*LongRunningUnitTest.java</exclude >
52+ <exclude >**/*ManualTest.java</exclude >
53+ <exclude >**/*LiveTest.java</exclude >
54+ </excludes >
55+ </configuration >
56+ </plugin >
57+ <plugin >
58+ <groupId >org.apache.maven.plugins</groupId >
59+ <artifactId >maven-compiler-plugin</artifactId >
60+ <version >${maven-compiler-plugin.version} </version >
61+ <configuration >
62+ <source >${maven.compiler.source} </source >
63+ <target >${maven.compiler.target} </target >
64+ </configuration >
65+ </plugin >
66+ </plugins >
67+ </build >
68+
69+ <profiles >
70+ <profile >
71+ <id >integration</id >
72+ <build >
73+ <plugins >
74+ <plugin >
75+ <groupId >org.apache.maven.plugins</groupId >
76+ <artifactId >maven-surefire-plugin</artifactId >
77+ <executions >
78+ <execution >
79+ <phase >integration-test</phase >
80+ <goals >
81+ <goal >test</goal >
82+ </goals >
83+ <configuration >
84+ <excludes >
85+ <exclude >**/*ManualTest.java</exclude >
86+ <exclude >**/*LiveTest.java</exclude >
87+ <exclude >**/AutoconfigurationTest.java</exclude >
88+ <exclude >**/*UnitTest.java</exclude >
89+ </excludes >
90+ <includes >
91+ <include >**/*IntegrationTest.java</include >
92+ <include >*/EthControllerTestOne.java</include >
93+ <include >**/*IntTest.java</include >
94+ <include >**/*EntryPointsTest.java</include >
95+ </includes >
96+ </configuration >
97+ </execution >
98+ </executions >
99+ <configuration >
100+ <systemPropertyVariables >
101+ <test .mime>json</test .mime>
102+ </systemPropertyVariables >
103+ </configuration >
104+ </plugin >
105+ </plugins >
106+ </build >
107+ </profile >
108+ </profiles >
109+
110+ <properties >
111+ <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
112+ <project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
113+ <java .version>1.8</java .version>
114+ <rest-assured .version>3.1.0</rest-assured .version>
115+ <!-- plugins -->
116+ <maven .compiler.source>1.8</maven .compiler.source>
117+ <maven .compiler.target>1.8</maven .compiler.target>
118+ </properties >
119+
120+ </project >
0 commit comments