maven tomcat plugin 热部署
2015-02-09 16:40
337 查看
1、拷贝文件 settings.xml 从 D:\soft\apache-maven-3.2.5\conf 到 D:\Documents and Settings\duli\.m2
2、配置window->preferences->maven->installations(user setting) 配置信息
3、添加plugin,tomcat7-maven-plugin.jar
4、tomcat7中配置用户及权限
修改apache-tomcat-7.0.57\conf\tomcate-users.xml文件(manager-gui,manager-script 必填)
5、maven中修改setting.xml文件,添加server
修改apache-maven-3.2.5\conf\setting.xml文件
6、修改pom.xml文件,添加server plugin
添加plugin及configuration 中信息
7、设置部署maven build 命令
8、部署项目
8.1、启动tomcate服务
8.2、项目 maven -> debug as -> maven clean
8.3、项目 maven -> debug as -> maven install
8.4、项目 maven -> debug as -> maven bulid
2、配置window->preferences->maven->installations(user setting) 配置信息
3、添加plugin,tomcat7-maven-plugin.jar
4、tomcat7中配置用户及权限
修改apache-tomcat-7.0.57\conf\tomcate-users.xml文件(manager-gui,manager-script 必填)
<role rolename="manager-gui" /> <role rolename="manager-script" /> <user username="admin" password="admin" roles="manager-gui,manager-script"/>
5、maven中修改setting.xml文件,添加server
修改apache-maven-3.2.5\conf\setting.xml文件
<server> <id>tomcat7</id> <username>admin</username> <password>admin</password> </server>
6、修改pom.xml文件,添加server plugin
添加plugin及configuration 中信息
<build> <finalName>newMaven</finalName> <plugins> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <server>tomcat7</server> <url>http://localhost:8080/manager/text</url> <username>admin</username> <password>admin</password> </configuration> </plugin> </plugins> </build>
7、设置部署maven build 命令
8、部署项目
8.1、启动tomcate服务
8.2、项目 maven -> debug as -> maven clean
8.3、项目 maven -> debug as -> maven install
8.4、项目 maven -> debug as -> maven bulid
相关文章推荐
- 使用tomcatPlugin配合JRebel解决maven项目依赖war的打包和热部署的问题
- maven tomcat plugin实现热部署
- eclipse-tomcatplugin部署maven项目方式八
- Maven集成 tomcat7-maven-plugin 部署Maven Web项目
- Idea 配置maven-tomcat-plugin插件实现项目部署
- cargo-maven2-plugin上传部署到tomcat服务器
- maven一键部署linux的tomcat(wagon-maven-plugin)
- Maven配置将war包部署到Tomcat(tomcat7-maven-plugin)
- tomcat7-maven-plugin部署项目到远程tomcat报错
- 使用tomcat-maven-plugin部署的配置及方法
- Tomcat Maven Plugin部署Maven Web应用
- 使用tomcat7-maven-plugin部署Web项目
- 基于maven-cargo-plugin 的tomcat7.x热部署记录
- 使用tomcat7-maven-plugin部署Web项目
- maven工程部署到tomcat服务器上:maven+tomcat6-maven-plugin
- maven tomcat plugin实现热部署
- maven tomcat plugin实现热部署
- maven tomcat plugin实现热部署
- eclipse-tomcatplugin部署maven项目方式七
- maven一键部署linux的tomcat(wagon-maven-plugin)