`

maven编译报版本错误

阅读更多

maven编译报版本错误,据说是历史遗留问题。在pom文件中指定编译版本可解决:

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-compiler-plugin</artifactId>
	<version>2.3.2</version>
	<configuration>
		<source>1.5</source>
		<target>1.5</target>
	</configuration>
</plugin>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics