Idea Community (Community Edition) use MAVEN to create Web projects and deploy Tomcat

Source: Internet
Author: User

Since the idea Community Edition (Community) cannot be directly new to a Web appplication, use Maven to create

1. Create a project

2.

3.

4. Here add a parameter to the properties archetypeCatalog=internal , without this parameter, will be very slow when Maven builds the skeleton, and sometimes it will be directly stuck.

Explanations from the Internet:

Archetypecatalog represents the plug-in uses the archetype metadata, does not add this parameter when the default is Remote,local, that is, the central warehouse archetype metadata, because the central warehouse archetype too much, so the result is very slow, Specify internal to indicate that only internal metadata is used.

5.

6. Configure Tomcat

7. Click the plus sign in the top left corner to select Maven

8.

9. First add the TOMCAT7 plugin to the pom.xml (note that I set the port number in the port tag is 9090)

[HTML]View PlainCopy
  1. <build>
  2. <finalname>testartif</finalname>
  3. <plugins>
  4. <plugin>
  5. <groupId>org.apache.tomcat.maven</groupId>
  6. <artifactid>tomcat7-maven-plugin</artifactid>
  7. <version>2.1</version>
  8. <configuration>
  9. <Port>9090</port>
  10. <path>/</path>
  11. <uriencoding>utf-8</uriencoding>
  12. <server>tomcat7</server>
  13. </configuration>
  14. </plugin>
  15. </plugins>
  16. </Build>



Then click on the green triangle arrow in the upper right corner and wait for Tomcat to start, you can see the Tomcat's boot information below. (If this is the first time, you may have to wait for the plugin to download from the MAVEN repository)

10.tomcat after successful startup, enter localhost:9090 in the browser

http://blog.csdn.net/u012364631/article/details/47682011

Idea Community (Community Edition) use MAVEN to create Web projects and deploy Tomcat

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.