我收到一个错误说
(使用-source 5或更高版本来启用注释){class path}错误:-source 1.3中不支持for-each循环
当我尝试使用maven编译模块时.
问题是我机器上的java版本是1.7.0_02
谁有人建议解决方案?
您可能希望将此包含在您的pom.xml文件中,因为我遇到了同样的问题:
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<compilerArgument></compilerArgument>
</configuration>
</plugin>
</plugins>
</pluginManagement>
Run Code Online (Sandbox Code Playgroud)