码迷,mamicode.com
首页 > 系统相关 > 详细

Eclipse Kepler maven工程配置JDK1.8

时间:2016-09-29 02:09:00      阅读:312      评论:0      收藏:0      [点我收藏+]

标签:

首先需要下载插件:"Help" --> "Market Place" --> Search for java 8 kepler.

  • install Java 8 support eclipse kepler sr2,
  • Java 8 Facets for web tools eclipse kepler sr2
  • Java 8 support for m2e for Eclipse Kepler SR2 (if required)

然后在pom.xml文件中配置:

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.3</version>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
        </plugins>
    </build>

选中工程,右键"Maven" --> "Update Project..."。如果不是Maven工程,需要先转化成Maven工程。

Eclipse Kepler maven工程配置JDK1.8

标签:

原文地址:http://www.cnblogs.com/drizzlewithwind/p/5918432.html

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