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
- <build>
- <finalname>testartif</finalname>
- <plugins>
- <plugin>
- <groupId>org.apache.tomcat.maven</groupId>
- <artifactid>tomcat7-maven-plugin</artifactid>
- <version>2.1</version>
- <configuration>
- <Port>9090</port>
- <path>/</path>
- <uriencoding>utf-8</uriencoding>
- <server>tomcat7</server>
- </configuration>
- </plugin>
- </plugins>
- </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