【发布时间】:2017-08-15 01:15:36
【问题描述】:
我在 Google App Engine 上有一个 Java 服务器。最近因为这个错误一直无法在线部署:
IllegalArgumentException: Class file is Java 8 but max supported is Java 7
谁能给点建议?我已经根据其他报告尝试了以下方法:
- 将
web.xml版本设置为 2.5 - 将 Eclipse JRE 设置为 Java 7(在运行配置 > JRE > 执行环境:JavaSE-1.7)
-
将以下内容添加到
pom.xml:<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.5.1</version> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin>
【问题讨论】:
标签: java eclipse maven google-app-engine