基于maven-cargo-plugin 的tomcat7.x热部署记录
来源:互联网 发布:java基础入门课后笔记 编辑:程序博客网 时间:2024/05/21 06:37
pom.xm 文件代码片段
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.4.3</version>
<configuration>
<container>
<containerId>tomcat7x</containerId>
<type>remote</type>
</container>
<configuration>
<type>runtime</type>
<properties>
<cargo.remote.username>admin</cargo.remote.username>
</properties>
<executions>
<!-- 执行的动作 -->
<execution>
<id>verify-deployer</id>
<phase>install</phase> <!-- 解析install -->
<goals>
<goal>deployer-redeploy</goal>
</goals>
</execution>
</executions>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.4.3</version>
<configuration>
<container>
<containerId>tomcat7x</containerId>
<type>remote</type>
</container>
<configuration>
<type>runtime</type>
<properties>
<cargo.remote.username>admin</cargo.remote.username>
<cargo.remote.password>admin</cargo.remote.password>
<cargo.remote.uri>http://192.168.17.194:8080/manager/text</cargo.remote.uri></properties>
</configuration>
<deployables>
<deployable>
<groupId>com.pre</groupId>
<artifactId>pre-dms-devp</artifactId>
<type>war</type>
</deployable>
</deployables>
<executions>
<!-- 执行的动作 -->
<execution>
<id>verify-deployer</id>
<phase>install</phase> <!-- 解析install -->
<goals>
<goal>deployer-redeploy</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- 这边cargo.remote.uri,需要用http://192.168.17.194:8080/manager/text 官方文档的英文解释
With Tomcat 7, the Tomcat manager has multiple aspects to be careful about:
- Your browser by default accesses the HTML-based manager whereas CARGO needs to use the text-based manager. As a result, if you want to set the
RemotePropertySet.URI
manually, please make sure you set the URL for the text-based manager, for examplehttp://production27:8080/manager/text
- The text-based manager requires to be accessed by a user with the
manager-script
role; and by default no user has that role. As a result, please make sure you modify yourtomcat-users.xml
file to give that role to a user.
You can read more on the Tomcat documentation: http://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html
tomcat-users.xm 配置文件
<tomcat-users>
<role rolename="manager-gui"/>
<role rolename="manager-status"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<user username="admin" password="admin" roles="manager-gui,manager-status,manager-script,manager-jmx"/>
</tomcat-users>
- 基于maven-cargo-plugin 的tomcat7.x热部署记录
- maven cargo tomcat7 远程部署
- 记录Tomcat7.x热部署配置过程
- 记录Tomcat7.x热部署配置过程
- 记录Tomcat7.x热部署配置过程
- eclipse maven tomcat7 热部署
- eclipse maven Tomcat7热部署
- maven + tomcat7实现热部署
- maven tomcat plugin 热部署
- 利用Maven和Cargo远程部署war到Tomcat7
- 使用tomcat7-maven-plugin部署Web项目
- tomcat7-maven-plugin的使用
- Maven tomcat7-maven-plugin 部署Maven Web 项目
- Maven tomcat7-maven-plugin 部署Maven Web 项目
- maven tomcat plugin实现热部署
- maven plugin在tomcat 热部署
- maven tomcat plugin实现热部署
- maven tomcat plugin实现热部署
- hdu 1228 A+B
- StarUML中InteractionOperation的画法
- sed 入门
- 黑马程序员-交通灯管理系统
- WPF在Windows XP下的一个兼容问题
- 基于maven-cargo-plugin 的tomcat7.x热部署记录
- linux 更改用户权限
- AndEngine中移动背景(上下移动、斜着移动)
- 在Tomcat中配置虚拟主机
- Objective-C中的protocol用法
- 一些看英语文档的笔记
- 实时数据库系统及其特征
- VS 的makefile工程
- POJ-1389-Area of Simple Polygons