如何配置从Eclipse到Wildfly的部署 [英] How to configure deployment from Eclipse to Wildfly

查看:655
本文介绍了如何配置从Eclipse到Wildfly的部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用 jboss-as-maven-plugin

mvn clean jboss-as:deploy

应用程序有效.当我尝试使用例如从Eclipse进行部署时完全发布",不是.

application works. When I try to deploy from Eclipse using e.g. "Full publish", it doesn't.

我比较了正在部署的应用程序的版本,似乎完全发布"只是复制了属性">部署程序集" 中指定的内容.

I've compared versions of application being deployed and seems that "Full publish" simply copied what has been specified in Properties > Deployment Assembly.

是否可以在完整发布"期间使用此插件? 我想为jsp使用热部署功能,但是如果没有从Eclipse中正确配置自动部署功能,我就被封锁了.

Is it possible to use this plugin during "Full publish" ? I want to make use of hot deploy feature for jsp, but without properly configured automatic deployment from Eclipse I'm rather blocked.

致谢

卢卡斯

Wildfly 8.0.0.CR1 
Eclipse Keppler SR1 
org.jboss.as.plugins:jboss-as-maven-plugin:7.2.Final

推荐答案

我和您一样为此感到困扰.

I am as troubled as you are with this.

更多搜索后,我在SO中找到了这两个建议: 答: Eclipse Kepler和JBoss Wildfly热部署和 B:在JBoss上进行热部署-如何我应该让JBoss看到"更改吗?

After searching a bit more I have found these two suggestions in SO: A: Eclipse Kepler and JBoss Wildfly hot deployment and B: Hot deploy on JBoss - how do I make JBoss "see" the change?

在这两种情况下,我都做了一个mvn install以创建war文件,然后通过右键单击服务器并使用添加-删除来部署它.现在,每次我更改某些内容然后按Save(保存)时,控制台输出都会更改,通知我20:02:45,086 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018565: Replaced deployment "web.war" with deployment "web.war".如果我将浏览器指向项目的URL,则所做的更改确实就在那里.

In both cases I did a mvn install in order to create war file and then deployed it by right clicking the server and using add-remove. Now every time I changed something and then pressed save the console output would change informing me that 20:02:45,086 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018565: Replaced deployment "web.war" with deployment "web.war". If I pointed my browser to the URL of my project the changes would indeed be there.

注意:在第二种情况下,取消部署时要小心.我没有将它从Eclipse中撤消,但是在去:http://localhost:9990/console/App.html#deployments我仍然可以看到战争,因此我还必须通过按管理控制台中的删除"按钮来删除它.

NOTE: Be careful when undeploying in the second case. I had it undeployed from eclipse but when going at: http://localhost:9990/console/App.html#deployments I could still see the war so I also had to remove it by pressing the remove button from the Management Console.

我希望这会有所帮助,但是我不确定这种功能是否在热部署中.

I hope this helps but I am not sure that this kind of functionality is hot deployement though.

这篇关于如何配置从Eclipse到Wildfly的部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆