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

时间:2019-04-28 14:58:42

标签: java maven glassfish payara

我正在尝试使用Maven Cargo插件通过此插件将战争部署到远程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 个答案:

没有答案