栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

mvn tomcat7:run-如何运作?

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

mvn tomcat7:run-如何运作?

pom.xml
tomcat7-maven-plugin
依赖于Tomcat的捆绑。Maven下载它们,然后该插件使用Web项目启动嵌入式Tomcat实例。

mvn -X tomcat7:run
打印配置。一些有趣的部分:

[INFO] Preparing tomcat7:run[DEBUG] (s) resources = [Resource {targetPath: null, filtering: false,     FileSet {directory: /workspace/webtest1/src/main/resources,     PatternSet [includes: {}, excludes: {}]}}]...[DEBUG] (f) additionalConfigFilesDir = /workspace/webtest1/src/main/tomcatconf[DEBUG] (f) configurationDir = /workspace/webtest1/target/tomcat...[DEBUG] (f) path = /webtest1...[DEBUG] (f) port = 8080[DEBUG] (f) project = ...:webtest1:0.0.1-SNAPSHOT @ /workspace/webtest1/pom.xml...[DEBUG] (f) warSourceDirectory = /workspace/webtest1/src/main/webapp...[INFO] Creating Tomcat server configuration at /workspace/webtest1/target/tomcat...[DEBUG] adding classPathElementFile file:/workspace/webtest1/target/classes/[DEBUG] add dependency to webapploader org.slf4j:slf4j-api:1.5.6:compile...

warSourceDirectory
指向
src
(not
target
),因此它可以像通常的动态Web项目一样运行,您可以更改JSP,HTML并立即看到它。因此,该
target/tomcat/webapps
文件夹为空。

v2.0站点比2.0-SNAPSHOT站点包含有关配置的更详细的文档:http : //mojo.prehaus.org/tomcat-maven-
plugin/plugin-info.html



转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/435782.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号