请尝试在pom.xml中为Maven构建配置包含以下代码。我和自己有同样的问题,这似乎对我有用:
<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></build>



