Idea to create a MAVEN Web project (graphic version)

Source: Internet
Author: User
Tags unique id tomcat

Idea as a widely used development tool, both in the background and in front of the workers, can find its charm.

Idea offers a number of project templates to share with you today as an example of creating a MAVEN Web project:

First step: file--new--project--maven--check create from archetype check WebApp

Click Next and in the next page, enter Groupid,artifacid (see the explanations on these two nouns on the Web: groupId: Defines which group the project belongs to, usually associated with a company or organization, for example, Your company is mycom. It should be defined as com.mycom.mymaven,mymaven as the project name
Artifactid: Defines the unique ID of the current MAVEN project in the group, such as Hellomaven, which I defined as Hello-maven, as well as the spring project, his GroupID for Org.springframework, Artifactid for content projects is Spring-content,web project Spring-web)

After the input is complete, click Next, the following screen appears, click Next, then enter the project name, project address, click Finish ....

Second step: After the first creation, you need to wait a moment, load the corresponding configuration file, and then the following figure shows

The project is now MAVEN's WebApp project.

This time the IDE has a cache that needs to be refreshed in MAVEN project on the right, loading the configuration in the POM (this step is important, I just forgot the point, causing the project configuration is always problematic)

(After adding the dependency of the jar in the Pom later, click on the MAVEN Project refresh button to swipe the cache, as shown in the following illustration

This time the Maven WebApp project is completely created and no more configuration is required in project structure

The following two graphs are configured by default and do not need to be modified.

Step three: Tomcat configuration

Click the inverted triangle at the top right of the interface and select Edit configurations

In the next interface, the path of Tomcat needs to be configured correctly:

After configuring the server interface, click Next to the deployment, as shown below: (Click the ' + ' sign, select artifact, then select the war exploded)

After the configuration is complete, click Apply---OK. This will allow you to use your MAVEN Web:

Your vision is more than that.

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.