11<?xml version =" 1.0" encoding =" UTF-8" ?>
2- <project xmlns =" http://maven.apache.org/POM/4.0.0"
3- xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
4- xsi:schemaLocation=" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
5- <modelVersion >4.0.0</modelVersion >
6- <artifactId >log4j2</artifactId >
2+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
4+ <modelVersion >4.0.0</modelVersion >
5+ <artifactId >log4j2</artifactId >
76
8- <parent >
9- <groupId >com.baeldung</groupId >
10- <artifactId >parent-modules</artifactId >
11- <version >1.0.0-SNAPSHOT</version >
12- <relativePath >../../</relativePath >
13- </parent >
14-
15- <dependencies >
16- <!-- This is the needed core component. -->
17- <dependency >
18- <groupId >org.apache.logging.log4j</groupId >
19- <artifactId >log4j-core</artifactId >
20- <version >${log4j-core.version} </version >
21- </dependency >
7+ <parent >
8+ <groupId >com.baeldung</groupId >
9+ <artifactId >parent-modules</artifactId >
10+ <version >1.0.0-SNAPSHOT</version >
11+ <relativePath >../../</relativePath >
12+ </parent >
2213
14+ <dependencies >
15+ <!-- This is the needed core component. -->
16+ <dependency >
17+ <groupId >org.apache.logging.log4j</groupId >
18+ <artifactId >log4j-core</artifactId >
19+ <version >${log4j-core.version} </version >
20+ </dependency >
21+
2322 <!-- This is the needed API component. -->
2423 <dependency >
2524 <groupId >org.apache.logging.log4j</groupId >
2625 <artifactId >log4j-api</artifactId >
2726 <version >${log4j-core.version} </version >
2827 </dependency >
2928
30- <!-- This is used by JSONLayout. -->
31- <dependency >
32- <groupId >com.fasterxml.jackson.core</groupId >
33- <artifactId >jackson-databind</artifactId >
34- <version >${jackson.version} </version >
35- </dependency >
29+ <!-- This is used by JSONLayout. -->
30+ <dependency >
31+ <groupId >com.fasterxml.jackson.core</groupId >
32+ <artifactId >jackson-databind</artifactId >
33+ <version >${jackson.version} </version >
34+ </dependency >
3635
37- <!-- This is used by XMLLayout. -->
38- <dependency >
39- <groupId >com.fasterxml.jackson.dataformat</groupId >
40- <artifactId >jackson-dataformat-xml</artifactId >
41- <version >${jackson.version} </version >
42- </dependency >
36+ <!-- This is used by XMLLayout. -->
37+ <dependency >
38+ <groupId >com.fasterxml.jackson.dataformat</groupId >
39+ <artifactId >jackson-dataformat-xml</artifactId >
40+ <version >${jackson.version} </version >
41+ </dependency >
4342
44- <!-- This is used by JDBC Appender. -->
45- <dependency >
46- <groupId >com.h2database</groupId >
47- <artifactId >h2</artifactId >
48- <version >${h2.version} </version >
49- </dependency >
50- <dependency >
51- <groupId >org.apache.commons</groupId >
52- <artifactId >commons-dbcp2</artifactId >
53- <version >${commons-dbcp2.version} </version >
54- </dependency >
43+ <!-- This is used by JDBC Appender. -->
44+ <dependency >
45+ <groupId >com.h2database</groupId >
46+ <artifactId >h2</artifactId >
47+ <version >${h2.version} </version >
48+ </dependency >
49+ <dependency >
50+ <groupId >org.apache.commons</groupId >
51+ <artifactId >commons-dbcp2</artifactId >
52+ <version >${commons-dbcp2.version} </version >
53+ </dependency >
5554
56- <!-- This is used for testing only. -->
57- <dependency >
58- <groupId >org.apache.logging.log4j</groupId >
59- <artifactId >log4j-core</artifactId >
60- <version >${log4j-core.version} </version >
61- <type >test-jar</type >
62- <scope >test</scope >
63- </dependency >
64- </dependencies >
55+ <!-- This is used for testing only. -->
56+ <dependency >
57+ <groupId >org.apache.logging.log4j</groupId >
58+ <artifactId >log4j-core</artifactId >
59+ <version >${log4j-core.version} </version >
60+ <type >test-jar</type >
61+ <scope >test</scope >
62+ </dependency >
63+ </dependencies >
6564
66- <build >
67- <plugins >
68- <plugin >
69- <groupId >org.apache.maven.plugins</groupId >
70- <artifactId >maven-compiler-plugin</artifactId >
71- <version >${maven-compiler-plugin.version} </version >
72- <configuration >
73- <proc >none</proc >
74- </configuration >
75- </plugin >
76- </plugins >
77- </build >
65+ <build >
66+ <plugins >
67+ <plugin >
68+ <groupId >org.apache.maven.plugins</groupId >
69+ <artifactId >maven-compiler-plugin</artifactId >
70+ <version >${maven-compiler-plugin.version} </version >
71+ <configuration >
72+ <proc >none</proc >
73+ </configuration >
74+ </plugin >
75+ </plugins >
76+ </build >
7877
79- <profiles >
80- <profile >
81- <id >integration</id >
82- <build >
83- <plugins >
84- <plugin >
85- <groupId >org.apache.maven.plugins</groupId >
86- <artifactId >maven-surefire-plugin</artifactId >
87- <executions >
88- <execution >
89- <phase >integration-test</phase >
90- <goals >
91- <goal >test</goal >
92- </goals >
93- <configuration >
94- <excludes >
95- <exclude >**/*ManualTest.java</exclude >
96- <exclude >**/*LiveTest.java</exclude >
97- </excludes >
98- <includes >
99- <include >**/*IntegrationTest.java</include >
100- <include >**/*IntTest.java</include >
101- </includes >
102- </configuration >
103- </execution >
104- </executions >
105- <configuration >
106- <systemPropertyVariables >
107- <test .mime>json</test .mime>
108- <logging .folder.path>${java.io.tmpdir} /${maven.build.timestamp} /logfile.json</logging .folder.path>
109- </systemPropertyVariables >
110- </configuration >
111- </plugin >
112- </plugins >
113- </build >
114- </profile >
115- </profiles >
78+ <profiles >
79+ <profile >
80+ <id >integration</id >
81+ <build >
82+ <plugins >
83+ <plugin >
84+ <groupId >org.apache.maven.plugins</groupId >
85+ <artifactId >maven-surefire-plugin</artifactId >
86+ <executions >
87+ <execution >
88+ <phase >integration-test</phase >
89+ <goals >
90+ <goal >test</goal >
91+ </goals >
92+ <configuration >
93+ <excludes >
94+ <exclude >**/*ManualTest.java</exclude >
95+ <exclude >**/*LiveTest.java</exclude >
96+ </excludes >
97+ <includes >
98+ <include >**/*IntegrationTest.java</include >
99+ <include >**/*IntTest.java</include >
100+ </includes >
101+ </configuration >
102+ </execution >
103+ </executions >
104+ <configuration >
105+ <systemPropertyVariables >
106+ <test .mime>json</test .mime>
107+ <logging .folder.path>${java.io.tmpdir} /${maven.build.timestamp} /logfile.json</logging .folder.path>
108+ </systemPropertyVariables >
109+ </configuration >
110+ </plugin >
111+ </plugins >
112+ </build >
113+ </profile >
114+ </profiles >
116115
117- <properties >
118- <jackson .version>2.9.5</jackson .version>
119- <h2 .version>1.4.193</h2 .version>
120- <commons-dbcp2 .version>2.1.1</commons-dbcp2 .version>
121- <log4j-core .version>2.11.0</log4j-core .version>
122- <maven .build.timestamp.format>yyyyMMddHHmmss</maven .build.timestamp.format>
123- </properties >
116+ <properties >
117+ <jackson .version>2.9.5</jackson .version>
118+ <h2 .version>1.4.193</h2 .version>
119+ <commons-dbcp2 .version>2.1.1</commons-dbcp2 .version>
120+ <log4j-core .version>2.11.0</log4j-core .version>
121+ <maven .build.timestamp.format>yyyyMMddHHmmss</maven .build.timestamp.format>
122+ </properties >
124123
125124</project >
0 commit comments