我用的""maven项目部署到tomcat的方式详解""

maven项目部署到tomcat的方式详解

1 在父项目上鼠标右键,--->maven install

我用的""maven项目部署到tomcat的方式详解""

 

 

2 在web项目的pom.xml中写上(在第"1"步前就应先写好):

<plugins>
            <plugin>
                <groupId>org.apache.tomcat.maven</groupId>
                <artifactId>tomcat7-maven-plugin</artifactId>
                <configuration>
                    <port>80</port>
                    <path>/</path>
                </configuration>
            </plugin>
        </plugins>我用的""maven项目部署到tomcat的方式详解""

 

3  在web项目上鼠标右键,--->maven build我用的""maven项目部署到tomcat的方式详解""