maven利用cargo插件本地远程部署

举报
隔壁老汪 发表于 2022/06/24 23:57:49 2022/06/24
1.2k+ 0 0
【摘要】 用了一些部署工具:发现Cargo工具部署比较方便,特此推荐一下~ Cargo分为standalone和existing模式 standalone模式:会从Web容器目录复制一份配置到用户指定的目录,然后在此基础上部署应用,每次重新构建,这个目录会被清空,所有配置重新生成 existing:用户需要指定现有的Web容器配置目录,...






















01.<plugin>  02.                <groupId>org.codehaus.cargo</groupId>  03.                <artifactId>cargo-maven2-plugin</artifactId>  04.                <version>1.1.3</version>  05.                <configuration>  06.                    <container>  07.                        <containerId>tomcat7x</containerId>  08.                        <home>E:\tomcat\apache-tomcat-7.0.26</home>  09.                    </container>  10.                    <configuration>  11.                        <type>existing</type>  12.                        <home>E:\tomcat\apache-tomcat-7.0.26</home>  13.                        <!--   14.                            <type>standalone</type>  15.                            <home>${project.build.directory}/tomcat7x</home>  16.                         -->  17.                    </configuration>  18.                </configuration>  19.            </plugin>  
 
















01.<plugin>  02.                <groupId>org.codehaus.cargo</groupId>  03.                <artifactId>cargo-maven2-plugin</artifactId>  04.                <version>1.1.3</version>  05.                <configuration>  06.                    <container>  07.                        <containerId>tomcat7x</containerId>  08.                        <type>remote</type>  09.                    </container>  10.                    <configuration>  11.                        <type>runtime</type>  12.                        <properties>  13.                            <cargo.remote.username>tomcat</cargo.remote.username>  14.                            <cargo.remote.password>tomcat</cargo.remote.password>  15.                            <cargo.remote.manager.url>http://localhost:8080/manager</cargo.remote.manager.url>  16.                        </properties>  17.                    </configuration>  18.                </configuration>  19.            </plugin>  
 














文章来源: blog.csdn.net,作者:隔壁老瓦,版权归原作者所有,如需转载,请联系作者。

原文链接:blog.csdn.net/wxb880114/article/details/84434456

【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

作者其他文章

评论(0

抱歉,系统识别当前为高风险访问,暂不支持该操作

    全部回复

    上滑加载中

    设置昵称

    在此一键设置昵称,即可参与社区互动!

    *长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

    *长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。