[英]Maven Cargo deployment to remote JONAS fails on already autoloaded war
Here is the sequence of actions that leads to deployment failure : 这是导致部署失败的操作序列:
If JONAS is not in autodeploy mode, there is no problem in redeploying a new version of the war through Cargo after a restart of JONAS. 如果JONAS不在自动部署模式下,则在重新启动JONAS之后,通过货运重新部署战争的新版本没有问题。
Any ideas ? 有任何想法吗 ?
Finally I don't use cargo anymore. 最后,我不再使用货物了。
Instead I do deployment through antrun plugin, and it works very well. 相反,我通过antrun插件进行部署,并且效果很好。
I have put JONAS in autodeploy mode. 我已将JONAS置于自动部署模式。
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<configuration>
<tasks>
<scp
file="${project.basedir}/target/${war.warName}.war"
todir="${scp.finalDir}"
trust="true"
failonerror="true"/>
</tasks>
</configuration>
<executions>
<execution>
<id>copy-war-to-server</id>
<phase>install</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-jsch</artifactId>
<version>1.6.5</version>
</dependency>
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jsch</artifactId>
<version>0.1.42</version>
</dependency>
</dependencies>
</plugin>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.