我已经将cargo
插件配置为部署到已在运行的weblogic
本地安装。
当我运行mvn cargo:deploy
时,我可以看到它将war
复制到WebLogic域的自动部署目录中,然后我可以在我的web浏览器中访问它试图ping并显示欢迎页面的同一个URL。
我想让cargo使用<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>
发布于 2016-03-24 16:45:47
你能尝试运行带有-X标志的maven构建吗?尝试在控制台中查找URLDeployableMonitor调试日志。它应该显示Cargo正在做什么以及ping失败的原因。
https://stackoverflow.com/questions/36154385
复制相似问题