简体   繁体   English

通过Cargo Maven插件远程部署项目

[英]Project deployment on remote via Cargo maven plugin

I'm trying to deploy a servlet project using cargo plugin. 我正在尝试使用cargo插件部署servlet项目。

pom.xml file: pom.xml文件:

...
<!-- cargo plugin  -->
      <plugin>
        <groupId>org.codehaus.cargo</groupId>
        <artifactId>cargo-maven2-plugin</artifactId>
        <configuration>
            <container>
                <containerId>tomcat6x</containerId>
                <type>remote</type>
                <systemProperties>
                    <cargo.jvmargs>-XX:MaxPermSize=256M -Xmx1024m</cargo.jvmargs>
                </systemProperties>
            </container>
            <configuration>
                <type>runtime</type>
                <properties>
                    <cargo.hostname>example.com</cargo.hostname>
                    <cargo.protocol>http</cargo.protocol>
                    <cargo.servlet.port></cargo.servlet.port>
                    <cargo.remote.username>verticals-renderer</cargo.remote.username>
                    <cargo.remote.password>verticals-renderer</cargo.remote.password>
                </properties>
            </configuration>
                <deployables>
                    <deployable>
                        <groupId>com.foo.foo</groupId>
                        <artifactId>foo-renderer</artifactId>
                        <type>war</type>
                        <properties>
                            <context>latest</context>
                        </properties>
                    </deployable>
                </deployables>

        </configuration>
    </plugin>
    <!-- End cargo plugin -->
...

As you see I want to deploy the project on a remote domain eg; 如您所见,我想在远程domain上部署项目,例如; example.com but when I run mvn cargo:doploy I get: example.com但是当我运行mvn cargo:doploy我得到:

Connection timed out

That's because it tries to deploy the project to: 那是因为它试图将项目部署到:

http://example.com:/manager

Any idea how can I remove the colon ( : ) from the URL? 任何想法我怎么能去掉冒号( :从URL)?

What happens if you remove cargo.servlet.port from your configuration properties? 如果从配置属性中删除cargo.servlet.port,会发生什么情况? I believe the empty port in your URL will then disappear. 我相信您网址中的空端口将消失。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用cargo Maven插件将Spring项目部署到远程服务器 - using cargo maven plugin to deploy spring project to remote server Jboss作为Maven插件远程部署问题 - Jboss as maven plugin remote deployment issue 未能在项目 duke 辅导上执行目标 org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy (deploy) - Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.4.4:redeploy (deploy) on project duke tutoring 通过cargo Maven插件在Wildfly上部署的战争应用程序中无法进行EJB注入 - EJB injection impossible in a war application deployed on wildfly via cargo maven plugin 问题-远程热部署,多模块Maven项目 - Problem - Remote Hot Deployment, Multi-Module Maven Project 由maven部署JavaEE 8教程失败,无法在项目hello1上执行目标org.codehaus.cargo:cargo-maven2-plugin:1.6.4:redeploy(deploy) - Deploying the JavaEE 8 Tutorial, by maven gets Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.6.4:redeploy (deploy) on project hello1 Hudson版本上的Cargo Maven插件问题 - Cargo maven plugin problem on hudson release 通过Eclipse插件远程部署到GAE时更新分派错误 - Update depatch error while remote deployment to GAE via Eclipse plugin 构建maven项目以进行部署 - Building a maven project for deployment 使用Cargo with Maven远程部署WAR而无需HOT部署 - Using Cargo with Maven to remotely deploy WAR without HOT deployment
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM