Jboss 7.x重新部署选项 [英] Jboss 7.x redeploy option
问题描述
中不再支持该选项,我发现是这个包含最新插件的Jboss链接
。
我已经决定使用 Jboss-as:重新部署选项。它似乎对我来说非常适用于硬部署的替代。但是当我检查我的Jboss / standalone / deployment文件夹时,战争没有更新。但代码更改反映在应用程序中。以下是我使用的maven插件代码
插件>
< groupId> org.jboss.as.plugins< / groupId>
< artifactId> jboss-as-maven-plugin< / artifactId>
< version> 7.5.Final< / version>
<执行>
< execution>
< phase> install< / phase>
< goals>
< goal>重新部署< / goal>
< / goals>
< / execution>
< / executions>
< / plugin>`
jboss插件有没有bug?在Jboss 7.x中实现我的硬部署目标的正确方法
似乎没有硬部署功能jboss 7.我们现在已经使用maven插件将新构建复制到部署目录,Jboss将检测到更改并部署新的WAR.Below是相同的代码:
< plugin>
< artifactId> maven-antrun-plugin< / artifactId>
< version> 1.4< / version>
<执行>
< execution>
< id> copy-war-file< / id>
< phase> install< / phase>
< configuration>
< tasks>
< copy file =target / myapp.wartofile =$ {env.JBOSS_HOME} \standalone\deployments\myapp.war/>
< / tasks>
< / configuration>
< goals>
< goal>运行< / goal>
< / goals>
< / execution>
< / executions>
< / plugin>
I was looking for hard-deploy option in Jboss &.x but I believe that option is no longer supported in Jboss 7.x what I found was this Jboss link containing latest plugins .
I have decided to use Jboss-as:redeploy option.It seems to work perfectly for me- kind of replacement for hard-deploy.But when I check my Jboss/standalone/deployment folder the timestamp of war is not updated.But code changes are reflected in the application.below is the maven plugin code that I am using
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.5.Final</version>
<executions>
<execution>
<phase>install</phase>
<goals>
<goal>redeploy</goal>
</goals>
</execution>
</executions>
</plugin>`
Is there any bug in jboss plugin there ?Is it the right way to achieve my hard-deploy goal in Jboss 7.x
There seems to be no hard-deploy feature in the jboss 7.We have now used maven plugin to copy the new build to the deployment directory and Jboss will detect the change and deploy the new WAR.Below is the code for the same:
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>copy-war-file</id>
<phase>install</phase>
<configuration>
<tasks>
<copy file="target/myapp.war" tofile="${env.JBOSS_HOME}\standalone\deployments\myapp.war" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
这篇关于Jboss 7.x重新部署选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!