maven项目 报错No compiler is provided in this environment. Perhaps you are running on a JRE rather than

maven项目报错

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

解决办法:

1、Windows——>Preferences——>Java——>Installed JREs——>Add——Standard VM——>选择JRE Home为JDK 路径——>点击Finish——>Apply

注意jdk版本要选择与你的符合的
maven项目 报错No compiler is provided in this environment. Perhaps you are running on a JRE rather than_第1张图片

2、在pom.xml中添加

注意jdk版本要选择与你的符合的


	  			org.apache.maven.plugins
				maven-compiler-plugin 
				
					1.8
					1.8
				
			

maven项目 报错No compiler is provided in this environment. Perhaps you are running on a JRE rather than_第2张图片

你可能感兴趣的:(java,web)