码迷,mamicode.com
首页 > 编程语言 > 详细

maven 构建项目时出错 “Dynamic Web Module 3.1 requires Java 1.7 or newer” in Eclipse

时间:2016-07-02 18:53:01      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:

记录一下,水平太菜,花费了半天时间。
pom.xml
 
<build>
    <plugins>
        <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.1</version>
        <configuration>
            <source>1.7</source>
            <target>1.7</target>
        </configuration>
    </plugin>
    </plugins>
</build>
 
  1. Another way is to edit the project facet configuration file itself: org.eclipse.wst.common.project.facet.core.xml
  2. Change the dynamic web module version in this line to 3.1 – <installed facet="jst.web" version="3.0"/>
  3. And then Maven -> Update Project. You’ll find this file in the .settings directory within the Eclipse project

maven 构建项目时出错 “Dynamic Web Module 3.1 requires Java 1.7 or newer” in Eclipse

标签:

原文地址:http://www.cnblogs.com/zhyp/p/5635700.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!