【问题标题】:Cannot redeploy to remote tomcat 7 with using cargo-maven-plugin无法使用 cargo-maven-plugin 重新部署到远程 tomcat 7
【发布时间】:2011-09-20 03:36:38
【问题描述】:

我正在尝试使用 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 以便更容易阅读。 Error link。非常感谢您提供任何帮助。

【问题讨论】:

    标签: maven tomcat7 maven-cargo


    【解决方案1】:

    对于任何想知道答案的人。看看for a caveat with 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>
    

    【讨论】:

      猜你喜欢
      • 2015-04-10
      • 1970-01-01
      • 2011-04-19
      • 2012-04-02
      • 2012-02-07
      • 2012-03-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多