Skip to content

Commit d6cda6d

Browse files
committed
Clean up lombok and compiler plugin config in pom.xml
Remove duplicate lombok dependency, merge the two maven-compiler-plugin blocks, drop redundant source/target/encoding settings inherited from spring-boot-starter-parent, and pin the annotation processor version via ${lombok.version}.
1 parent 4ea43f5 commit d6cda6d

1 file changed

Lines changed: 3 additions & 18 deletions

File tree

mflix/server/java-spring/pom.xml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<dependency>
5959
<groupId>org.projectlombok</groupId>
6060
<artifactId>lombok</artifactId>
61-
<optional>true</optional>
61+
<scope>provided</scope>
6262
</dependency>
6363

6464
<!-- Force version for Commons Lang used by SpringDoc (CVE-2025-48924) -->
@@ -100,12 +100,6 @@
100100
<artifactId>langchain4j-voyage-ai</artifactId>
101101
<version>${langchain4j.version}</version>
102102
</dependency>
103-
104-
<dependency>
105-
<groupId>org.projectlombok</groupId>
106-
<artifactId>lombok</artifactId>
107-
<scope>provided</scope>
108-
</dependency>
109103
</dependencies>
110104

111105
<build>
@@ -116,27 +110,18 @@
116110
<artifactId>spring-boot-maven-plugin</artifactId>
117111
</plugin>
118112

113+
<!-- Maven Compiler Plugin - Suppress annotation processing warnings -->
119114
<plugin>
120115
<groupId>org.apache.maven.plugins</groupId>
121116
<artifactId>maven-compiler-plugin</artifactId>
122117
<configuration>
123-
<source>${java.version}</source>
124-
<target>${java.version}</target>
125-
<encoding>${project.build.sourceEncoding}</encoding>
126118
<annotationProcessorPaths>
127119
<path>
128120
<groupId>org.projectlombok</groupId>
129121
<artifactId>lombok</artifactId>
122+
<version>${lombok.version}</version>
130123
</path>
131124
</annotationProcessorPaths>
132-
</configuration>
133-
</plugin>
134-
135-
<!-- Maven Compiler Plugin - Suppress annotation processing warnings -->
136-
<plugin>
137-
<groupId>org.apache.maven.plugins</groupId>
138-
<artifactId>maven-compiler-plugin</artifactId>
139-
<configuration>
140125
<compilerArgs>
141126
<arg>-Xlint:-options</arg>
142127
</compilerArgs>

0 commit comments

Comments
 (0)