Cannot redeploy to remote tomcat 7 with using cargo-maven-plugin

允我心安 提交于 2019-12-04 09:21:32
rottmanj

For anyone wanting to know the answer to this. Take a look at for a caveat with tomcat 7.

You can use something like this.

<plugin>
            <groupId>org.codehaus.cargo</groupId>
            <artifactId>cargo-maven2-plugin</artifactId>
            <version>1.1.1</version>
            <configuration>
                <container>
                    <containerId>tomcat7x</containerId>
                    <type>remote</type>
                </container>
                <configuration>
                    <type>runtime</type>
                    <properties>
                        <cargo.remote.username>devuser</cargo.remote.username>
                        <cargo.remote.password>86gphpphp</cargo.remote.password>
                        <cargo.remote.uri>http://192.168.2.116:8080/manager/text</cargo.remote.uri>
                    </properties>
                    <deployables>
                        <deployable>
                            <groupId>com.fiobox</groupId>
                            <artifactId>fiobox</artifactId>
                            <type>war</type>
                        </deployable>
                    </deployables>
                </configuration>
            </configuration>
        </plugin>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!