当前位置:   article > 正文

lombok启动build失败_post-compiler 'lombok.bytecode.preventnullanalysis

post-compiler 'lombok.bytecode.preventnullanalysisremover' caused an excepti

网上那些基本操作就不说了,在我这都没用。
1.项目的maven文件中添加:
在这里插入图片描述

<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.8.0</version>
				<configuration>
					<source>${java.version}</source>
					<target>${java.version}</target>
					<encoding>${project.build.sourceEncoding}</encoding>
					<compilerArguments>
						<extdirs>src\main\webapp\WEB-INF\lib</extdirs>
					</compilerArguments>
					<annotationProcessorPaths>
						<path>
							<groupId>org.projectlombok</groupId>
							<artifactId>lombok</artifactId>
							<version>1.18.8</version>
						</path>
					</annotationProcessorPaths>
				</configuration>
			</plugin>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20

2.我下的java是1.8版本的,也就是jdk1.8
在这里插入图片描述
在项目里,IDEA给我搞成jdk11的了:
在这里插入图片描述
在这里插入图片描述
改成1.8

本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号