有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java使用Cargo插件将web应用程序部署到远程服务器

我正在尝试使用Maven Cargo插件将war部署到远程Payara服务器,并使用以下插件:

        <plugin>
            <groupId>org.codehaus.cargo</groupId>
            <artifactId>cargo-maven2-plugin</artifactId>
            <configuration>
                <container>
                    <containerId>glassfish5x</containerId>
                    <type>remote</type>
                </container>
                <configuration>
                    <type>runtime</type>
                    <properties>
                        <payara.username>${payara.username}</payara.username>
                        <payara.password>${payara.password}</payara.password>
                        <payara.hostname>${payara.hostname}</payara.hostname>
                        <cargo.remote.username>${payara.username}</cargo.remote.username>
                        <cargo.remote.password>${payara.password}</cargo.remote.password>
                        <cargo.glassfish.admin.port>4848</cargo.glassfish.admin.port>
                        <cargo.hostname>${payara.hostname}</cargo.hostname>
                    </properties>
                </configuration>
            </configuration>
            <!-- provides JSR88 client API to deploy on Payara Server -->
            <dependencies>
                <dependency>
                    <groupId>org.glassfish.main.deployment</groupId>
                    <artifactId>deployment-client</artifactId>
                    <version>5.0</version>
                </dependency>
            </dependencies>
        </plugin>

问题:我遇到了错误:

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.cargo:cargo-maven2-plugin:1.7.3:redeploy (default-cli) on project server: Execution default-cli of goal org.codehaus.cargo:cargo-mav
en2-plugin:1.7.3:redeploy failed: Deployment has failed: null

我的配置中可能缺少什么或有什么问题


共 (0) 个答案