Intellij Idea 2015 new maven tutorial

Source: Internet
Author: User

First, Step preview
    1. 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) ;)
    2. Select Maven Project and select the Maven-archetype-webapp item;
    3. Fill in GroupID (company name, example: COM.LM) and Artifactid (project name);
    4. Enter project name and project location (workspace naming and placement), and enter the module name (project name) name in more Settings.
    5. 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;
    6. 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/
    7. Set Artifacts:
      Output directory:/project/module/target/module (MAVEN project, compiled in target directory)
    8. 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

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.