Eclipse 用Maven 编译错误 Dynamic Web Module 3.1 requires Java 1.7 or newer
2017-07-19 16:03
501 查看
Eclipse Maven Dynamic Web Module 3.1 requires Java 1.7 or newer
这是由于你的 Maven 编译级别低,而你导入jdk高于它的依赖包:可查看 Eclipse 的 Navigator 视图下该项目的 .classpath 文件
解决办法:
使用 maven-compiler-plugin 将 maven 编译级别改为 jdk1.8:
<build>
<plugins>
<!-- define the project compile level -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
这是由于你的 Maven 编译级别低,而你导入jdk高于它的依赖包:可查看 Eclipse 的 Navigator 视图下该项目的 .classpath 文件
解决办法:
使用 maven-compiler-plugin 将 maven 编译级别改为 jdk1.8:
<build>
<plugins>
<!-- define the project compile level -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
相关文章推荐
- (转) Eclipse Maven 编译错误 Dynamic Web Module 3.1 requires Java 1.7 or newer 解决方案
- Maven项目 Eclipse报Dynamic Web Module 3.1 requires Java 1.7 or newer错误解决方案
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Maven中出现Resource Path Location Type Dynamic Web Module 3.1 requires Java 1.7 or newer
- 解決Maven項目导入后报错问题 --Dynamic Web Module 3.1 requires Java 1.7 or newer
- Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Eclipse jdk1.7 Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案
- Maven 编译错误 Dynamic Web Module 3.0 requires Java 1.6 or newer 解决方案