通过tomcat插件自动部署tomcat服务器

时间:2016-04-27 05:21:40

标签: eclipse maven tomcat

我想通过我的tomcat maven插件自动部署我的tomcat服务器(不在eclipse中)...所以我提到目标为run ....仍然没有运行....如何提及目标在tomcat插件中默认启动tomcat服务器。

  <plugin>
                    <groupId>org.apache.tomcat.maven</groupId>
                    <artifactId>tomcat7-maven-plugin</artifactId>
                    <version>2.2</version>
                    <executions>
                        <execution>
                            <id>tomcat-run</id>
                            <phase>package</phase>
                            <goals>
                                <goal>tomcat7:deploy</goal>
                            </goals>
                        </execution>
                    </executions>
                    <configuration>
                        <url>http://localhost:8080/manager/text</url>
                        <server>myserver</server>
                        <path>/${project.artifactId}</path>
                        <username>username</username>
                        <password>password</password>
                    </configuration>
                </plugin>

0 个答案:

没有答案
相关问题