无法使用cargo-maven-plugin重新部署到远程tomcat 7 [英] Cannot redeploy to remote tomcat 7 with using cargo-maven-plugin

查看:151
本文介绍了无法使用cargo-maven-plugin重新部署到远程tomcat 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用cargo-maven插件构建并重新部署到远程tomcat 7服务器.我已经能够成功部署到远程服务器,但是所有其他操作均失败.

这是我pom.xml中的插入设置

        <plugin>
            <groupId>org.codehaus.cargo</groupId>
            <artifactId>cargo-maven2-plugin</artifactId>
            <version>1.1.1</version>
            <configuration>
                <!-- Container configuration -->
                <container>
                    <containerId>tomcat7x</containerId>
                    <type>remote</type>
                </container>
                <configuration>
                    <type>runtime</type>
                    <properties>
                        <cargo.remote.username>tomcat</cargo.remote.username>
                        <cargo.remote.password>tomcat</cargo.remote.password>
                        <cargo.remote.uri>http://devserver:8080/manager/html</cargo.remote.uri>
                    </properties>
                </configuration>
            </configuration>                
        </plugin>

这是我在尝试部署时在eclipse中看到的错误.我将其发布到pastebin,以便于阅读. 错误链接.任何帮助,我们将不胜感激.

解决方案

适用于任何想知道答案的人.看看以获得有关tomcat 7的警告.

您可以使用类似这样的东西.

<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>

I am attempting to build and redeploy to a remote tomcat 7 server using the cargo-maven plugin. I have been able to successfully deploy to the remote server, but all other actions fail.

Here is the pluging settings in my pom.xml

        <plugin>
            <groupId>org.codehaus.cargo</groupId>
            <artifactId>cargo-maven2-plugin</artifactId>
            <version>1.1.1</version>
            <configuration>
                <!-- Container configuration -->
                <container>
                    <containerId>tomcat7x</containerId>
                    <type>remote</type>
                </container>
                <configuration>
                    <type>runtime</type>
                    <properties>
                        <cargo.remote.username>tomcat</cargo.remote.username>
                        <cargo.remote.password>tomcat</cargo.remote.password>
                        <cargo.remote.uri>http://devserver:8080/manager/html</cargo.remote.uri>
                    </properties>
                </configuration>
            </configuration>                
        </plugin>

This is the error I am seeing within eclipse, when I attempt to deploy. I posted it to pastebin so it is easier to read. Error link. Any help with this is greatly appreciated.

解决方案

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>

这篇关于无法使用cargo-maven-plugin重新部署到远程tomcat 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆