在maven中使用tomcat
第一个问题比较简单,在pom里加入tomcat插件
?
代码<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>tomcat-maven-plugin</artifactId> <version>1.0-beta-1</version> <configuration> </configuration> </plugin>
?
?
?
?????????? 在工程目录里使用mvn tomcat:run命令就可以跑起来,现在的tomcat版本是6.0.16。
?
????????? 我是写了个批处理文件,双击直接清理,打包,运行tomcat
?
cd /d %~dp0 set MAVEN_BATCH_PAUSE=on mvn clean package -DdownloadSources=true tomcat:run