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 >maven</artifactId >
6+ <version >0.0.1-SNAPSHOT</version >
7+
8+ <parent >
9+ <artifactId >parent-modules</artifactId >
10+ <groupId >com.baeldung</groupId >
11+ <version >1.0.0-SNAPSHOT</version >
12+ </parent >
13+
14+ <properties >
15+ <maven .resources.version>3.0.2</maven .resources.version>
16+ <maven .compiler.version>3.7.0</maven .compiler.version>
17+ <maven .surefire.version>2.21.0</maven .surefire.version>
18+ <maven .failsafe.version>2.21.0</maven .failsafe.version>
19+ <maven .verifier.version>1.1</maven .verifier.version>
20+ <maven .clean.version>3.0.0</maven .clean.version>
21+ <resources .name>Baeldung</resources .name>
22+ </properties >
23+
24+ <dependencies >
25+ <dependency >
26+ <groupId >junit</groupId >
27+ <artifactId >junit</artifactId >
28+ <version >4.12</version >
29+ <scope >test</scope >
30+ </dependency >
31+ </dependencies >
32+
33+ <build >
34+ <plugins >
35+ <plugin >
36+ <artifactId >maven-resources-plugin</artifactId >
37+ <version >${maven.resources.version} </version >
38+ <configuration >
39+ <outputDirectory >output-resources</outputDirectory >
40+ <resources >
41+ <resource >
42+ <directory >input-resources</directory >
43+ <excludes >
44+ <exclude >*.png</exclude >
45+ </excludes >
46+ <filtering >true</filtering >
47+ </resource >
48+ </resources >
49+ </configuration >
50+ </plugin >
51+ <plugin >
52+ <artifactId >maven-compiler-plugin</artifactId >
53+ <version >${maven.compiler.version} </version >
54+ <configuration >
55+ <source >1.8</source >
56+ <target >1.8</target >
57+ <compilerArgs >
58+ <arg >-Xlint:unchecked</arg >
59+ </compilerArgs >
60+ </configuration >
61+ </plugin >
62+ <plugin >
63+ <artifactId >maven-surefire-plugin</artifactId >
64+ <version >${maven.surefire.version} </version >
65+ <configuration >
66+ <excludes >
67+ <exclude >DataTest.java</exclude >
68+ </excludes >
69+ <includes >
70+ <include >DataCheck.java</include >
71+ </includes >
72+ </configuration >
73+ </plugin >
74+ <plugin >
75+ <artifactId >maven-failsafe-plugin</artifactId >
76+ <version >${maven.failsafe.version} </version >
77+ <executions >
78+ <execution >
79+ <goals >
80+ <goal >integration-test</goal >
81+ <goal >verify</goal >
82+ </goals >
83+ <configuration >
84+ <!-- configuration similar to surefire -->
85+ </configuration >
86+ </execution >
87+ </executions >
88+ </plugin >
89+ <plugin >
90+ <artifactId >maven-verifier-plugin</artifactId >
91+ <version >${maven.verifier.version} </version >
92+ <configuration >
93+ <verificationFile >input-resources/verifications.xml</verificationFile >
94+ </configuration >
95+ <executions >
96+ <execution >
97+ <goals >
98+ <goal >verify</goal >
99+ </goals >
100+ </execution >
101+ </executions >
102+ </plugin >
103+ <plugin >
104+ <artifactId >maven-clean-plugin</artifactId >
105+ <version >${maven.clean.version} </version >
106+ <configuration >
107+ <filesets >
108+ <fileset >
109+ <directory >output-resources</directory >
110+ </fileset >
111+ </filesets >
112+ </configuration >
113+ </plugin >
114+ </plugins >
115+ </build >
116+ </project >
0 commit comments