Skip to content

Commit 10836fd

Browse files
authored
Update pom.xml
1 parent c478f44 commit 10836fd

File tree

1 file changed

+20
-18
lines changed
  • logging-modules/splunk-with-log4j2

1 file changed

+20
-18
lines changed

logging-modules/splunk-with-log4j2/pom.xml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,19 @@
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55
<parent>
6-
<groupId>com.baeldung</groupId>
7-
<artifactId>logging-modules</artifactId>
8-
<version>1.0.0-SNAPSHOT</version>
6+
<groupId>org.springframework.boot</groupId>
7+
<artifactId>spring-boot-starter-parent</artifactId>
8+
<version>3.3.4</version>
9+
<relativePath/>
910
</parent>
10-
1111
<groupId>com.splunk</groupId>
1212
<artifactId>log4j</artifactId>
1313
<version>0.0.1-SNAPSHOT</version>
1414
<name>log4j</name>
1515
<description>Demo project for Splunk with Spring Boot</description>
16-
1716
<properties>
1817
<java.version>17</java.version>
1918
<splunk-logging.version>1.8.0</splunk-logging.version>
20-
<spring-boot.version>3.3.4</spring-boot.version>
21-
<maven-compiler.version>3.8.1</maven-compiler.version>
2219
</properties>
2320

2421
<repositories>
@@ -38,19 +35,33 @@
3835
<dependency>
3936
<groupId>org.springframework.boot</groupId>
4037
<artifactId>spring-boot-starter-web</artifactId>
41-
<version>${spring-boot.version}</version>
38+
<exclusions>
39+
<exclusion>
40+
<groupId>org.springframework.boot</groupId>
41+
<artifactId>spring-boot-starter-logging</artifactId>
42+
</exclusion>
43+
</exclusions>
4244
</dependency>
4345
<dependency>
4446
<groupId>org.springframework.boot</groupId>
4547
<artifactId>spring-boot-starter-test</artifactId>
46-
<version>${spring-boot.version}</version>
4748
<scope>test</scope>
49+
<exclusions>
50+
<exclusion>
51+
<groupId>org.springframework.boot</groupId>
52+
<artifactId>spring-boot-starter-logging</artifactId>
53+
</exclusion>
54+
</exclusions>
4855
</dependency>
4956
<dependency>
5057
<groupId>com.splunk.logging</groupId>
5158
<artifactId>splunk-library-javalogging</artifactId>
5259
<version>${splunk-logging.version}</version>
5360
</dependency>
61+
<dependency>
62+
<groupId>org.springframework.boot</groupId>
63+
<artifactId>spring-boot-starter-log4j2</artifactId>
64+
</dependency>
5465
</dependencies>
5566

5667
<build>
@@ -59,15 +70,6 @@
5970
<groupId>org.springframework.boot</groupId>
6071
<artifactId>spring-boot-maven-plugin</artifactId>
6172
</plugin>
62-
<plugin>
63-
<groupId>org.apache.maven.plugins</groupId>
64-
<artifactId>maven-compiler-plugin</artifactId>
65-
<version>3.13.0</version>
66-
<configuration>
67-
<source>${java.version}</source>
68-
<target>${java.version}</target>
69-
</configuration>
70-
</plugin>
7173
</plugins>
7274
</build>
7375

0 commit comments

Comments
 (0)