Skip to content

Commit 9beea1c

Browse files
committed
fix: configure Lombok for hateos sample
1 parent 3e4b25f commit 9beea1c

1 file changed

Lines changed: 20 additions & 6 deletions

File tree

  • friendly-id-samples/friendly-id-spring-boot-hateos

‎friendly-id-samples/friendly-id-spring-boot-hateos/pom.xml‎

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<dependency>
4646
<groupId>org.projectlombok</groupId>
4747
<artifactId>lombok</artifactId>
48-
<scope>provided</scope>
48+
<optional>true</optional>
4949
</dependency>
5050

5151
<dependency>
@@ -63,14 +63,28 @@
6363
<build>
6464
<plugins>
6565
<plugin>
66-
<groupId>org.springframework.boot</groupId>
67-
<artifactId>spring-boot-maven-plugin</artifactId>
68-
</plugin>
69-
<plugin>
66+
<groupId>org.apache.maven.plugins</groupId>
7067
<artifactId>maven-compiler-plugin</artifactId>
71-
<version>3.14.0</version>
7268
<configuration>
7369
<parameters>true</parameters>
70+
<annotationProcessorPaths>
71+
<path>
72+
<groupId>org.projectlombok</groupId>
73+
<artifactId>lombok</artifactId>
74+
</path>
75+
</annotationProcessorPaths>
76+
</configuration>
77+
</plugin>
78+
<plugin>
79+
<groupId>org.springframework.boot</groupId>
80+
<artifactId>spring-boot-maven-plugin</artifactId>
81+
<configuration>
82+
<excludes>
83+
<exclude>
84+
<groupId>org.projectlombok</groupId>
85+
<artifactId>lombok</artifactId>
86+
</exclude>
87+
</excludes>
7488
</configuration>
7589
</plugin>
7690
<plugin>

0 commit comments

Comments
 (0)