maven web项目使用tomcat发布,不用tomcat插件

maven web项目 不使用tomcat插件启动, 使用原生的tomcat 启动。修改方法原理不负责

    1.修改项目的Properties - Project Facets -(初次选择convert xxx ) 选择Dynamic Web Modul -选择版本

        2.5 支持tomcat6  2.4支持tomcat5 ,高版本tomcat向下兼容。

    上图

maven web项目使用tomcat发布,不用tomcat插件_第1张图片

maven web项目使用tomcat发布,不用tomcat插件_第2张图片

maven web项目使用tomcat发布,不用tomcat插件_第3张图片

maven web项目使用tomcat发布,不用tomcat插件_第4张图片

maven web项目使用tomcat发布,不用tomcat插件_第5张图片

maven web项目使用tomcat发布,不用tomcat插件_第6张图片

webapp目录添加

 

maven web项目使用tomcat发布,不用tomcat插件_第7张图片

maven web项目使用tomcat发布,不用tomcat插件_第8张图片

 

发布到tomcat7中

maven web项目使用tomcat发布,不用tomcat插件_第9张图片

添加tomcat Server

maven web项目使用tomcat发布,不用tomcat插件_第10张图片

 

创建的tomcat 默认的发布路径 修改为该tomcat7的发布路径

maven web项目使用tomcat发布,不用tomcat插件_第11张图片

maven web项目使用tomcat发布,不用tomcat插件_第12张图片

 修改后的发布路径 ,Deploy path 修改为webapp

你可能感兴趣的:(maven,web项目使用tomcat发布)