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