IDEA 下Maven 編譯會自動切換 JDK 到 1.5

ctrl+alt+shift+s 設置也沒用。apache

ctrl+alt+s 設置也沒用。maven

只有修改 pom 文件, 添加以下插件插件

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-compiler-plugin</artifactId>
	<version>3.6.0</version>
	<configuration>
		<source>1.7</source>
		<target>1.7</target>
		<encoding>UTF-8</encoding>
	</configuration>
</plugin>
相關文章
相關標籤/搜索