IntelliJ idea + maven to create a Java Web project

Source: Internet
Author: User
Tags java web

1. Introduction to Maven
Projects managed and built under Maven are really good and simple compared to traditional projects, so it's also important to use such tools as much as possible to build projects that can manage the entire lifecycle of a project.

You can do all the relevant work with its commands, and its common commands are as follows:

-MVN Compile
-MVN Test
-MVN Clean
-MVN Package
-MVN Install//installs the newly created jar package into the warehouse
-MVN archetype:generate//Create a new project

2. Configure Maven
Software is configured once and all MAVEN projects are shared.

Choose Your Own Warehouse

3. Creating a Java Web project using the MAVEN skeleton

4. Configuring the Java Web Project
4-1) Project Structure

5. Configure Tomcat

6. Start the web Server
Visit the url:http://localhost:8080 on browser

7. Create a Java program directory

IntelliJ idea + maven to create a Java Web 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.