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>

你可能感兴趣的:(apache,maven,xml)