tomcat不能自動(dòng)部署
<plugin>
? ? ? ?
? ? <groupId>org.apache.tomcat.maven</groupId>
? <artifactId>tomcat7-maven-plugin</artifactId>
? <version>2.2</version>
? ??
? ? <executions><!-- 排除依賴傳遞列表 -->
? ? <execution><!-- 被排除的依賴 -->
? ? <!-- 在打包成功后使用jetty:run來(lái)運(yùn)行jetty服務(wù) -->
? ? <phase>package</phase><!-- phase:階段 。在package時(shí)運(yùn)行一個(gè)目標(biāo) -->
? ? <goals><!-- 目標(biāo)列表 -->
? ? <goal>run</goal><!-- 目標(biāo) -->
? ? </goals>
? ? </execution>
? ? </executions>
? ? ? ? </plugin>
[INFO] Scanning for projects...
[INFO]?
[INFO] ---------------------< com.imooc.webdemo:webdemo >----------------------
[INFO] Building webdemo Maven Webapp 0.0.1-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO]?
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ webdemo ---
[INFO] Deleting F:\Eclipse Maven Project\webdemo\target
[INFO]?
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ webdemo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]?
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ webdemo ---
[INFO] Nothing to compile - all classes are up to date
[INFO]?
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ webdemo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO]?
[INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ webdemo ---
[INFO] Nothing to compile - all classes are up to date
[INFO]?
[INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @ webdemo ---
[INFO]?
[INFO] --- maven-war-plugin:3.2.2:war (default-war) @ webdemo ---
[INFO] Packaging webapp
[INFO] Assembling webapp [webdemo] in [F:\Eclipse Maven Project\webdemo\target\webdemo]
[INFO] Processing war project
[INFO] Copying webapp resources [F:\Eclipse Maven Project\webdemo\src\main\webapp]
[INFO] Webapp assembled in [21 msecs]
[INFO] Building war: F:\Eclipse Maven Project\webdemo\target\webdemo.war
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.100 s
[INFO] Finished at: 2018-12-25T17:19:26+08:00
[INFO] ------------------------------------------------------------------------
2018-12-25
手動(dòng)tomcat:run可以部署成功,用clean package只能打包,不會(huì)繼續(xù)部署tomcat