为了账号安全,请及时绑定邮箱和手机立即绑定

tomcat不能自动部署

<plugin>

       

    <groupId>org.apache.tomcat.maven</groupId>

  <artifactId>tomcat7-maven-plugin</artifactId>

  <version>2.2</version>

    

    <executions><!-- 排除依赖传递列表 -->

    <execution><!-- 被排除的依赖 -->

    <!-- 在打包成功后使用jetty:run来运行jetty服务 -->

    <phase>package</phase><!-- phase:阶段 。在package时运行一个目标 -->

    <goals><!-- 目标列表 -->

    <goal>run</goal><!-- 目标 -->

    </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] ------------------------------------------------------------------------



正在回答

1 回答

手动tomcat:run可以部署成功,用clean package只能打包,不会继续部署tomcat

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
项目管理利器——maven
  • 参与学习       173090    人
  • 解答问题       742    个

使用maven来构建和管理Java项目,从环境配置,到maven核心知识

进入课程

tomcat不能自动部署

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信