Skip to content

Commit 03633f2

Browse files
committed
Add lombok annotation processor to avoid cannot find symbol errors during ./mvnw clean spring-boot:run. Introduce better way to exclude lombok jars from the build artefacts.
1 parent e313bb9 commit 03633f2

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

mflix/server/java-spring/pom.xml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@
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>
103109
</dependencies>
104110

105111
<build>
@@ -108,13 +114,21 @@
108114
<plugin>
109115
<groupId>org.springframework.boot</groupId>
110116
<artifactId>spring-boot-maven-plugin</artifactId>
117+
</plugin>
118+
119+
<plugin>
120+
<groupId>org.apache.maven.plugins</groupId>
121+
<artifactId>maven-compiler-plugin</artifactId>
111122
<configuration>
112-
<excludes>
113-
<exclude>
123+
<source>${java.version}</source>
124+
<target>${java.version}</target>
125+
<encoding>${project.build.sourceEncoding}</encoding>
126+
<annotationProcessorPaths>
127+
<path>
114128
<groupId>org.projectlombok</groupId>
115129
<artifactId>lombok</artifactId>
116-
</exclude>
117-
</excludes>
130+
</path>
131+
</annotationProcessorPaths>
118132
</configuration>
119133
</plugin>
120134

0 commit comments

Comments
 (0)