Create a maven-managed Javaweb project with idea

Source: Internet
Author: User

Original ~ Reprint Please specify

Tool: IntelliJ Idea 2017

More and more projects are being managed with MAVEN, so it's necessary to learn about the creation of MAVEN projects, a lot of Maven's advantages, which are characterized by XML configuration jar package dependency management, which resolves jar package versioning and conflict issues.

Search online for some information, now create a MAVEN project for your own memory learning

First, install IntelliJ idea

Second, create a new project, select Maven Project, follow the steps to select, click Next

Third, GroupID is the package name of the project, follow com.***, Artifictid is the name of the project, such as Mavendeom

Four, choose the MAVEN version here, I will choose the default Maven3 3.3.9 Click Next:

V. Project name and path location of project: Click Finish to complete MAVEN creation

Six, this is maven created a good interface, waiting for the maven update download jar package, will immediately appear the project directory structure, and maven Pom.xml file

Click File or project right to go to project structure (project construction?). ) Project,modules, and libraries are generally automatically equipped with the first, you can ignore the default

Eight, click Facets, select as, this is more important, need their own configuration:

1. Select Web, click OK to enter:

Eight. When configured, click Create Artifact to enter:

1. Re-configure a war pack

Nine, click Finish, after the start to configure Tomcat, the premise of local installation has Tomcat first configuration server

1. Configuring Tomcat's deployment

Finally click OK to complete the configuration, run Tomcat, test the project is configured, such as the advent of the Hello World certificate has been configured:

The MAVEN project is configured to prepare for the SSM framework, and then a Spring+mybatis+shiro framework is configured ...

Create a maven-managed Javaweb project with idea

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.