kotlin 和 lombok编译冲突的解决办法
使用Kotlin Lombok 编译插件解决
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
<version>${kotlin.version}</version>
<configuration>
<compilerPlugins>
<plugin>lombok</plugin>
</compilerPlugins>
<pluginOptions>
<option>lombok:config=${project.basedir}/lombok.config</option>
</pluginOptions>
</configuration>
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-lombok</artifactId>
<version>${kotlin.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.20</version>
<scope>provided</scope>
</dependency>
</dependencies>
</plugin>
如果编译失败,可能是没有添加 lombok.config配置文件,该文件可以为空
标签:解决办法,kotlin,编译,org,lombok,config From: https://www.cnblogs.com/sky-just-cloud/p/18358842/kotlin-and-lombok-compilation-conflict-s