Maven configuration, using IntelliJ idea and maven to create a Java Web project

Source: Internet
Author: User
Tags java web

1. Download maven
Official address: http://maven.apache.org/download.cgi

Unzip and create a new local warehouse folder

2. Configure the local warehouse path

3. Configure MAVEN Environment variables





4. Configuring Maven in IntelliJ Idea
Open-file-settings

5. Create a new MAVEN Web project
Open-file-new-project
Click Next

GroupID and artifactid< project name > also version, these three properties are intended to identify the uniqueness of your project.

Click Next

The added configuration is archetypecatalog=internal
Click Next

Click Next

After clicking Finish, the project starts to create
Click in the lower right corner to view it.

6.maven Web Template Project Structure

Recources folder: Typically used to store some resource files
WebApp folder: Used to store Web configuration files and JSP pages, etc., which has formed an original web application


Also create a new test folder under Main, and then create a new Java Test source folder and resource Test resource folder under this folder

You can also right-click the project-select open Module settings to change the project configuration page

7. Configure the Dependent Jar package

Jar Package Configuration Search
Official address: http://mvnrepository.com/

Article excerpt from: http://blog.csdn.net/qq_32588349/article/details/51461182

Maven configuration, using IntelliJ idea and maven to create a Java Web project

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.