First, Step preview
- Create new Project; (Note: Project in idea is the concept of workspace in Eclipse; the module in idea is the concept of project in Eclipse (it is recommended that a project corresponds to a module) ;)
- Select Maven Project and select the Maven-archetype-webapp item;
- Fill in GroupID (company name, example: COM.LM) and Artifactid (project name);
- Enter project name and project location (workspace naming and placement), and enter the module name (project name) name in more Settings.
- Right-click the project and open module settings:
5.1 Add Java source folder: New folder-"Mark as Sources;
5.2resources folder-"Mark as Resources;
- Set Facets:
6.1 Add-"Web
6.2 Deployment Descriptors:src/main/webapp/web-inf/web.xml
6.3 Web Resources directories:src/main/webapp/
- Set Artifacts:
Output directory:/project/module/target/module (MAVEN project, compiled in target directory)
- Run-"Edit configurations: Configure the server
8.1 add-> Tomcat Server
8.2 Name
8.3 Deployment, add artifacts, application Context
Second, graphic description
1. Create New project:
2. Select Maven Project and select Maven-archetype-webapp:
3. Fill in GroupID and Artifactid:
4. Enter project name and Module name:
5. Open module settings, add Java source folder:
Mark the Java folder as Sources,resources folder as resources:
6. Set Facets:
7. Set Artifacts:
To add a Web application:exploded:
Add Web application:archive (project packaged into a jar package):
8, configure the Tomcat server, can refer to another blog post settings Intellij Idea 2015 Import myeclipse project
After starting the TOMCAT server:
Intellij Idea 2015 new maven tutorial