Eclipse--maven Plugin Create Java project

Source: Internet
Author: User

The directory structure is as follows

Note The default JDK is 1.5

Change the default JDK

Mode one right-click Project

Select JRE1.5 Remove

Double-click the JRE System Library

Click Finish

Change complete

Mode two configuration maven settings.xml file

set the JDK version of the project created by Maven-once and for all [1] Open the settings.xml file [2] Find the Profiles tag [3] Add the following configuration< Profile>                <ID>jdk-1.8</ID>                <activation>                    <Activebydefault>True</Activebydefault>                    <JDK>1.8</JDK>                </activation>                <Properties>                    <Maven.compiler.source>1.8</Maven.compiler.source>                    <Maven.compiler.target>1.8</Maven.compiler.target>                    <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>                </Properties>            </ Profile>

Eclipse--maven Plugin Create Java project

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.