0

我已将cargo插件配置为部署到已经运行的本地安装weblogic.

当我运行时,mvn cargo:deploy我可以看到它复制war到 weblogic 域的 autodeploy 目录,然后我可以在我的 Web 浏览器中转到它尝试 ping 并显示欢迎页面的相同 URL。

我希望货物通过使用<pingURL>标签来确认部署是否有效,但是即使超时时间很大,它总是说在超时期限内部署失败!

有任何想法吗?

<plugin>
    <groupId>org.codehaus.cargo</groupId>
    <artifactId>cargo-maven2-plugin</artifactId>
    <version>1.4.14</version>
    <inherited>true</inherited>
    <configuration>
        <container>
            <containerId>weblogic121x</containerId>
            <type>installed</type>
            <home>${weblogic121x.home}</home>
        </container>
        <configuration>
            <type>existing</type>
            <home>${weblogic121x.home}/domains/${weblogic121x.domain}</home>
            <properties>
                <cargo.hostname>${weblogic121x.host}</cargo.hostname>
                <cargo.weblogic.administrator.user>${weblogic121x.user}</cargo.weblogic.administrator.user>
                <cargo.weblogic.administrator.password>${weblogic121x.password}</cargo.weblogic.administrator.password>
                <cargo.logging>high</cargo.logging>
                <cargo.servlet.port>${weblogic121x.adminport}</cargo.servlet.port>
            </properties>
        </configuration>
        <deployables>
            <deployable>
                <groupId>${project.groupId}</groupId>
                <artifactId>${project.artifactId}</artifactId>
                <type>war</type>
                <properties>
                    <context>${sit.context}</context>
                </properties>
                <location>${project.build.directory}/${project.build.finalName}.${project.packaging}</location>
                <pingURL>http://${weblogic121x.host}:${weblogic121x.adminport}${sit.context}</pingURL>
                <pingTimeout>150000</pingTimeout>
            </deployable>
        </deployables>
    </configuration>
</plugin>
4

1 回答 1

0

您可以尝试使用 -X 标志运行 maven build 吗?尝试在控制台中查找 URLDeployableMonitor 调试日志。它应该显示 Cargo 正在做什么以及 ping 失败的原因。

于 2016-03-24T08:45:46.660 回答