Maven Cargo:Weblogic部署pingURL超时
我已将Maven Cargo:Weblogic部署pingURL超时,maven,deployment,maven-cargo,cargo-maven2-plugin,Maven,Deployment,Maven Cargo,Cargo Maven2 Plugin,我已将cargo插件配置为部署到已在运行的weblogic本地安装 当我运行mvn cargo:deploy时,我可以看到它将war复制到weblogic域的autodeploy目录,然后我可以在我的web浏览器中转到它尝试ping的相同URL并显示欢迎页面 我希望cargo通过使用标记确认部署工作正常,但是即使有很大的超时,它也总是说在超时时间内部署失败 有什么想法吗 <plugin> <groupId>org.codehaus.cargo</groupI
cargo
插件配置为部署到已在运行的weblogic
本地安装
当我运行mvn cargo:deploy
时,我可以看到它将war
复制到weblogic域的autodeploy目录,然后我可以在我的web浏览器中转到它尝试ping的相同URL并显示欢迎页面
我希望cargo通过使用
标记确认部署工作正常,但是即使有很大的超时,它也总是说在超时时间内部署失败
有什么想法吗
<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>
org.codehaus.cargo
cargo-maven2-plugin
1.4.14
真的
weblogic121x
安装
${weblogic121x.home}
现有的
${weblogic121x.home}/domains/${weblogic121x.domain}
${weblogic121x.host}
${weblogic121x.user}
${weblogic121x.password}
高的
${weblogic121x.adminport}
${project.groupId}
${project.artifactId}
战争
${sit.context}
${project.build.directory}/${project.build.finalName}.${project.packaging}
http://${weblogic121x.host}:${weblogic121x.adminport}${sit.context}
150000
能否尝试使用-X标志运行maven build?尝试在控制台中查找URLDeployableMonitor调试日志。它应该显示Cargo在做什么,以及ping失败的原因。我确实尝试过这个,它不断重复一条看门狗的消息,基本上说“尚未部署”。它一直这样做,直到超时过期。没有其他明显的错误/例外ping URL是否正确?在您的配置中,我看到…${weblogic121x.adminport}${sit.context}。。。我认为端口和上下文之间应该有“/”。嗨,是的,这是正确的。sit.context
的前缀是a/Hi,您可以在这里输入尝试访问该URL时货物显示的消息吗?您可以尝试在元素中输入不带/prefix的上下文值吗?