如何使用JBoss Tools插件将Eclipse压缩的EAR应用程序部署到Wildfly? [英] How to deploy a EAR app as zipped from Eclipse into Wildfly using JBoss Tools plugin?

查看:233
本文介绍了如何使用JBoss Tools插件将Eclipse压缩的EAR应用程序部署到Wildfly?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的操作系统是Windows 7 64位.

我正在使用Eclipse Luna.我有JBoss Tools 4.2.3.Final插件.

我在独立模式下使用Wildfly 8.2.1.Final.

我有一个名为TestApp的EAR应用程序.

要从Eclipse将其发布到Wildfly,请在服务器"视图中右键单击Wildfly服务器以打开弹出菜单,然后单击发布"选项.

当我从Eclipse将其发布到Wildfly时,它以爆炸的形式部署在standalone\deployments目录中,即在standalone\deployments目录中创建了一个名为TestApp.ear的子目录,其中包含所有文件.

我想要的是当我将其从Eclipse发布到Wildfly时,将其作为压缩部署在standalone\deployments目录中,即名为TestApp.ear的zip文件中.

我该怎么做?

当我使用旧版JBoss 4.2.3在Eclipse中工作时,当我从Eclipse部署到JBoss时,它以 zip 部署,但是如何通过Jboss Tools插件获得相同的方式?

谢谢

解决方案

在服务器"视图中双击WildFly,将打开其属性页面.

其中有2个标签:概述和部署.

转到部署"标签.

有一个选项将项目部署为压缩的存档",旁边还有一个复选框.在这种情况下,不会对其进行检查.

选中它,然后保存.

下次部署EAR应用程序时,它将以压缩状态进行部署.

My operating system is Windows 7 64-bit.

I am using Eclipse Luna. I have JBoss Tools 4.2.3.Final plugin.

I am using Wildfly 8.2.1.Final in Standalone mode.

I have a EAR app named TestApp.

To publish it to Wildfly from Eclipse, in the Servers view, I right click on the Wildfly server to open the pop-up menu and click on Publish option.

When I publish it to Wildfly from Eclipse, it is deployed as exploded in standalone\deployments directory i.e. a sub-directory named TestApp.ear is created in standalone\deployments directory which has all the files.

What I want is when I publish it to Wildfly from Eclipse, it is deployed as zipped in standalone\deployments directory i.e. a zip file named TestApp.ear.

How can I do that?

When I work in Eclipse with old JBoss version 4.2.3, when I deploy to JBoss from Eclipse, it is deployed as zipped but how to get the same way with Jboss Tools plugin?

Thanks

解决方案

Double click on WildFly in "Servers" view which will open its properties page.

There are 2 tabs in it: Overview and Deployment.

Go to "Deployment" tab.

There is an option "Deploy projects as compressed archives" with a checkbox besides it. In you case it is not checked.

Check it then save it.

Next time when you deploy the EAR app it will deploy as compressed.

这篇关于如何使用JBoss Tools插件将Eclipse压缩的EAR应用程序部署到Wildfly?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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