11<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 >
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 >
77
8- <parent >
9- <artifactId >parent-modules</artifactId >
10- <groupId >com.baeldung</groupId >
11- <version >1.0.0-SNAPSHOT</version >
12- </parent >
8+ <parent >
9+ <artifactId >parent-modules</artifactId >
10+ <groupId >com.baeldung</groupId >
11+ <version >1.0.0-SNAPSHOT</version >
12+ </parent >
1313
14- <build >
15- <plugins >
16- <plugin >
17- <artifactId >maven-resources-plugin</artifactId >
18- <version >${maven.resources.version} </version >
19- <configuration >
20- <outputDirectory >output-resources</outputDirectory >
21- <resources >
22- <resource >
23- <directory >input-resources</directory >
24- <excludes >
25- <exclude >*.png</exclude >
26- </excludes >
27- <filtering >true</filtering >
28- </resource >
29- </resources >
30- </configuration >
31- </plugin >
32- <plugin >
33- <artifactId >maven-compiler-plugin</artifactId >
34- <version >${maven-compiler-plugin.version} </version >
35- <configuration >
36- <source >${java.version} </source >
37- <target >${java.version} </target >
38- <compilerArgs >
39- <arg >-Xlint:unchecked</arg >
40- </compilerArgs >
41- </configuration >
42- </plugin >
43- <plugin >
44- <artifactId >maven-surefire-plugin</artifactId >
45- <version >${maven-surefire-plugin.version} </version >
46- <configuration >
47- <excludes >
48- <exclude >DataTest.java</exclude >
49- </excludes >
50- <includes >
51- <include >TestFail.java</include >
52- <include >DataCheck.java</include >
53- </includes >
54- <testFailureIgnore >true</testFailureIgnore >
55- </configuration >
56- </plugin >
57- <plugin >
58- <artifactId >maven-failsafe-plugin</artifactId >
59- <version >${maven.failsafe.version} </version >
60- <executions >
61- <execution >
62- <goals >
63- <goal >integration-test</goal >
64- <goal >verify</goal >
65- </goals >
66- <configuration >
67- <!-- configuration similar to surefire -->
68- </configuration >
69- </execution >
70- </executions >
71- </plugin >
72- <plugin >
73- <artifactId >maven-verifier-plugin</artifactId >
74- <version >${maven.verifier.version} </version >
75- <configuration >
76- <verificationFile >input-resources/verifications.xml</verificationFile >
77- </configuration >
78- <executions >
79- <execution >
80- <goals >
81- <goal >verify</goal >
82- </goals >
83- </execution >
84- </executions >
85- </plugin >
86- <plugin >
87- <artifactId >maven-clean-plugin</artifactId >
88- <version >${maven.clean.version} </version >
89- <configuration >
90- <filesets >
91- <fileset >
92- <directory >output-resources</directory >
93- </fileset >
94- </filesets >
95- </configuration >
96- </plugin >
97- <plugin >
98- <groupId >org.codehaus.mojo</groupId >
99- <artifactId >build-helper-maven-plugin</artifactId >
100- <version >${maven.build.helper.version} </version >
101- <executions >
102- <execution >
103- <phase >generate-sources</phase >
104- <goals >
105- <goal >add-source</goal >
106- </goals >
107- <configuration >
108- <sources >
109- <source >src/main/another-src</source >
110- </sources >
111- </configuration >
112- </execution >
113- </executions >
114- </plugin >
115- </plugins >
116- </build >
14+ <build >
15+ <plugins >
16+ <plugin >
17+ <artifactId >maven-resources-plugin</artifactId >
18+ <version >${maven.resources.version} </version >
19+ <configuration >
20+ <outputDirectory >output-resources</outputDirectory >
21+ <resources >
22+ <resource >
23+ <directory >input-resources</directory >
24+ <excludes >
25+ <exclude >*.png</exclude >
26+ </excludes >
27+ <filtering >true</filtering >
28+ </resource >
29+ </resources >
30+ </configuration >
31+ </plugin >
32+ <plugin >
33+ <artifactId >maven-compiler-plugin</artifactId >
34+ <version >${maven-compiler-plugin.version} </version >
35+ <configuration >
36+ <source >${java.version} </source >
37+ <target >${java.version} </target >
38+ <compilerArgs >
39+ <arg >-Xlint:unchecked</arg >
40+ </compilerArgs >
41+ </configuration >
42+ </plugin >
43+ <plugin >
44+ <artifactId >maven-surefire-plugin</artifactId >
45+ <version >${maven-surefire-plugin.version} </version >
46+ <configuration >
47+ <excludes >
48+ <exclude >DataTest.java</exclude >
49+ </excludes >
50+ <includes >
51+ <include >TestFail.java</include >
52+ <include >DataCheck.java</include >
53+ </includes >
54+ <testFailureIgnore >true</testFailureIgnore >
55+ </configuration >
56+ </plugin >
57+ <plugin >
58+ <artifactId >maven-failsafe-plugin</artifactId >
59+ <version >${maven.failsafe.version} </version >
60+ <executions >
61+ <execution >
62+ <goals >
63+ <goal >integration-test</goal >
64+ <goal >verify</goal >
65+ </goals >
66+ <configuration >
67+ <!-- configuration similar to surefire -->
68+ </configuration >
69+ </execution >
70+ </executions >
71+ </plugin >
72+ <plugin >
73+ <artifactId >maven-verifier-plugin</artifactId >
74+ <version >${maven.verifier.version} </version >
75+ <configuration >
76+ <verificationFile >input-resources/verifications.xml</verificationFile >
77+ </configuration >
78+ <executions >
79+ <execution >
80+ <goals >
81+ <goal >verify</goal >
82+ </goals >
83+ </execution >
84+ </executions >
85+ </plugin >
86+ <plugin >
87+ <artifactId >maven-clean-plugin</artifactId >
88+ <version >${maven.clean.version} </version >
89+ <configuration >
90+ <filesets >
91+ <fileset >
92+ <directory >output-resources</directory >
93+ </fileset >
94+ </filesets >
95+ </configuration >
96+ </plugin >
97+ <plugin >
98+ <groupId >org.codehaus.mojo</groupId >
99+ <artifactId >build-helper-maven-plugin</artifactId >
100+ <version >${maven.build.helper.version} </version >
101+ <executions >
102+ <execution >
103+ <phase >generate-sources</phase >
104+ <goals >
105+ <goal >add-source</goal >
106+ </goals >
107+ <configuration >
108+ <sources >
109+ <source >src/main/another-src</source >
110+ </sources >
111+ </configuration >
112+ </execution >
113+ </executions >
114+ </plugin >
115+ </plugins >
116+ </build >
117117
118- <properties >
119- <maven .resources.version>3.0.2</maven .resources.version>
120- <maven .failsafe.version>2.21.0</maven .failsafe.version>
121- <maven .verifier.version>1.1</maven .verifier.version>
122- <maven .clean.version>3.0.0</maven .clean.version>
123- <maven .build.helper.version>3.0.0</maven .build.helper.version>
124- <resources .name>Baeldung</resources .name>
125- </properties >
118+ <profiles >
119+ <profile >
120+ <id >default</id >
121+ <build >
122+ <plugins >
123+ <plugin >
124+ <artifactId >maven-surefire-plugin</artifactId >
125+ <version >${maven-surefire-plugin.version} </version >
126+ <configuration >
127+ <excludes >
128+ <exclude >DataTest.java</exclude >
129+ </excludes >
130+ <includes >
131+ <include >TestFail.java</include >
132+ <include >DataCheck.java</include >
133+ </includes >
134+ <testFailureIgnore >true</testFailureIgnore >
135+ </configuration >
136+ </plugin >
137+ </plugins >
138+ </build >
139+ </profile >
140+ </profiles >
141+
142+ <properties >
143+ <maven .resources.version>3.0.2</maven .resources.version>
144+ <maven .failsafe.version>2.21.0</maven .failsafe.version>
145+ <maven .verifier.version>1.1</maven .verifier.version>
146+ <maven .clean.version>3.0.0</maven .clean.version>
147+ <maven .build.helper.version>3.0.0</maven .build.helper.version>
148+ <resources .name>Baeldung</resources .name>
149+ </properties >
126150
127151</project >
0 commit comments