1.New project--> Select the left maven--> click Next
2. Enter GroupID and Artifactid, click Next
3. Enter project name, select Project Location, enter module name, select Content Root, module file location, click Finish
4. Select the module that you just built, right-click "Add framwork Support ..." and select Struts 2 in the popup dialog box.
5. Add the following configuration to the Pom.xml file after the creation is complete
<Packaging>War</Packaging> <Build> <Plugins> <plugin> <groupId>Org.apache.maven.plugins</groupId> <Artifactid>Maven-war-plugin</Artifactid> <version>2.1.1</version> <Configuration> <webappdirectory>Web</webappdirectory> </Configuration> </plugin> </Plugins> </Build> <Dependencies> <Dependency> <groupId>Org.apache.struts</groupId> <Artifactid>Struts2-core</Artifactid> <version>2.3.15.3</version> </Dependency> </Dependencies>
6. Move the generated struts.xml file to the Resources folder.
7. Configure Tomcat, for example, click the + sign under before Launch:make, pop up the dialog configuration, click OK
8.Maven package generates the target directory and then goes back to the deploy at the server startup under the deployment of Tomcat configuration, select "External Source ...", Select the war package generated under the target directory that you just generated, click OK
9. To this all configuration is complete.
Intellij IDEA14 + Maven + Tomcat Build project