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

2、在pom.xml中添加

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

<plugin>
	  			<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId> 
				<configuration>
					<source>1.8</source>
					<target>1.8</target>
				</configuration>
			</plugin>

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

相关文章: